forked from heldersepu/Swagger-Net
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIModelFilter.cs
More file actions
29 lines (24 loc) · 749 Bytes
/
Copy pathIModelFilter.cs
File metadata and controls
29 lines (24 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using Newtonsoft.Json.Serialization;
using System;
namespace Swagger.Net
{
public interface IModelFilter
{
void Apply(Schema model, ModelFilterContext context);
}
public class ModelFilterContext
{
public ModelFilterContext(
Type systemType,
JsonObjectContract jsonObjectContract,
SchemaRegistry schemaRegistry)
{
SystemType = systemType;
JsonObjectContract = jsonObjectContract;
SchemaRegistry = schemaRegistry;
}
public Type SystemType { get; private set; }
public JsonObjectContract JsonObjectContract { get; private set; }
public SchemaRegistry SchemaRegistry { get; private set; }
}
}