ObjectTypeMapper
Maps .NET type to a generated JSON Schema describing an object.
Gets the mapped type.
Gets a value indicating whether to use a JSON Schema reference for the type.
Initializes a new instance of the ObjectTypeMapper class.
public ObjectTypeMapper(Type mappedType, Func<JsonSchemaGenerator, JsonSchemaResolver, JsonSchema4> schemaFactory)
Initializes a new instance of the ObjectTypeMapper class.
public Task GenerateSchemaAsync<TSchemaType>(TSchemaType schema, JsonSchemaGenerator schemaGenerator, JsonSchemaResolver schemaResolver, IEnumerable<Attribute> parentAttributes) where TSchemaType : JsonSchema4
Gets the schema for the mapped type.