-
-
Notifications
You must be signed in to change notification settings - Fork 535
Schema Processors
Rico Suter edited this page Mar 15, 2018
·
8 revisions
With a schema processor, you can modify each generated schema after it has been generated.
Just implement the ISchemaProcessor
and add an instance of the processor to the SchemaProcessors
list of the JsonSchemaGeneratorSettings
.
public class MySchemaProcessor : ISchemaProcessor
{
public Task ProcessAsync(SchemaProcessorContext context)
{
...
}
}
[JsonSchemaProcessor(typeof(MySchemaProcessor))]
public class MyType
{
...
}