SchemaProcessorContext
The schema processor context.
using Namotion.Reflection;
using System;
using System.Runtime.CompilerServices;
namespace NJsonSchema.Generation
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public class SchemaProcessorContext
{
[Obsolete("Use ContextualType to obtain this instead.")]
public Type Type {
get {
return ContextualType.get_OriginalType();
}
}
public ContextualType ContextualType { get; }
public JsonSchema Schema { get; }
public JsonSchemaResolver Resolver { get; }
public JsonSchemaGenerator Generator { get; }
public JsonSchemaGeneratorSettings Settings { get; }
public SchemaProcessorContext(ContextualType contextualType, JsonSchema schema, JsonSchemaResolver resolver, JsonSchemaGenerator generator, JsonSchemaGeneratorSettings settings)
{
ContextualType = contextualType;
Schema = schema;
Resolver = resolver;
Generator = generator;
Settings = settings;
}
}
}