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

JsonSchemaResolver

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

Gets the root object.

public IEnumerable<JsonSchema4> Schemas { get; }

Gets all the schemas.

public JsonSchemaResolver(object rootObject, JsonSchemaGeneratorSettings settings)

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.