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

PrimitiveTypeMapper

Maps .NET type to a generated JSON Schema describing a primitive value.
public Type MappedType { get; }

Gets the mapped type.

public bool UseReference { get; }

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

public PrimitiveTypeMapper(Type mappedType, Action<JsonSchema4> transformer)

Initializes a new instance of the PrimitiveTypeMapper class.

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

Gets the schema for the mapped type.