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

DefaultReflectionService

The default reflection service implementation.

Creates a JsonTypeDescription from a Type.

public virtual JsonTypeDescription GetDescription(ContextualType contextualType, ReferenceTypeNullHandling defaultReferenceTypeNullHandling, JsonSchemaGeneratorSettings settings)

Creates a JsonTypeDescription from a Type.

protected virtual bool IsArrayType(ContextualType contextualType)

Checks whether the given type is an array type.

protected virtual bool IsBinary(ContextualType contextualType)

Checks whether the given type is a file/binary type.

protected virtual bool IsDictionaryType(ContextualType contextualType)

Checks whether the given type is a dictionary type.

public virtual bool IsNullable(ContextualType contextualType, ReferenceTypeNullHandling defaultReferenceTypeNullHandling)

Checks whether a type is nullable.

public bool IsStringEnum(ContextualType contextualType, JsonSerializerSettings serializerSettings)

Checks whether the give type is a string enum.