<PackageReference Include="NJsonSchema" Version="11.0.0-preview002" />

IReflectionService

public interface IReflectionService
Provides methods to reflect on types.
using Namotion.Reflection; namespace NJsonSchema.Generation { public interface IReflectionService { string ConvertEnumValue(object value, JsonSchemaGeneratorSettings settings); string GetPropertyName(ContextualAccessorInfo accessorInfo, JsonSchemaGeneratorSettings settings); void GenerateProperties(JsonSchema schema, ContextualType contextualType, JsonSchemaGeneratorSettings settings, JsonSchemaGenerator schemaGenerator, JsonSchemaResolver schemaResolver); JsonTypeDescription GetDescription(ContextualType contextualType, ReferenceTypeNullHandling defaultReferenceTypeNullHandling, JsonSchemaGeneratorSettings settings); JsonTypeDescription GetDescription(ContextualType contextualType, JsonSchemaGeneratorSettings settings); bool IsNullable(ContextualType contextualType, ReferenceTypeNullHandling defaultReferenceTypeNullHandling); bool IsStringEnum(ContextualType contextualType, JsonSchemaGeneratorSettings settings); } }