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

IReflectionService

public interface IReflectionService
Provides methods to reflect on types.

Creates a JsonTypeDescription from a Type.

Creates a JsonTypeDescription from a Type.

bool IsNullable(ContextualType contextualType, ReferenceTypeNullHandling defaultReferenceTypeNullHandling)

Checks whether a type is nullable.

bool IsStringEnum(ContextualType contextualType, JsonSerializerSettings serializerSettings)

Checks whether the give type is a string enum.