<PackageReference Include="NJsonSchema" Version="6.8.6197.43075" />

JsonSchemaResolver

public class JsonSchemaResolver
Manager which resolves types to schemas and appends missing schemas to the root object.
public virtual bool HasRootObject { get; }

Gets a value indicating whether a root object is defined.

public IEnumerable<JsonSchema4> Schemas { get; }

Gets all the schemas.

Initializes a new instance of the JsonSchemaResolver class.

public virtual void AddSchema(Type type, bool isIntegerEnumeration, JsonSchema4 schema)

Adds a schema to type mapping.

public virtual void AppendSchema(JsonSchema4 schema, string typeNameHint)

Appends the schema to the root object.

public JsonSchema4 GetSchema(Type type, bool isIntegerEnumeration)

Gets the schema for a given type.

public bool HasSchema(Type type, bool isIntegerEnumeration)

Determines whether the specified type has a schema.

public virtual void SetRootObject(object rootObject)

Sets the root object.