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

ObjectTypeMapper

public class ObjectTypeMapper : ITypeMapper
Maps .NET type to a generated JSON Schema describing an object.
public Type MappedType { get; }

public bool UseReference { get; }

Gets a value indicating whether to use a JSON Schema reference for the type.

public ObjectTypeMapper(Type mappedType, JsonSchema4 schema)

Initializes a new instance of the ObjectTypeMapper class.

Initializes a new instance of the ObjectTypeMapper class.

public virtual TSchemaType GetSchema<TSchemaType>(JsonSchemaGenerator schemaGenerator, JsonSchemaResolver schemaResolver) where TSchemaType : JsonSchema4

Gets the schema.