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

NJsonSchema.Generation.IReflectionService

public interface IReflectionService
Provides methods to reflect on types.
void GenerateProperties(JsonSchema schema, ContextualType contextualType, JsonSchemaGeneratorSettings settings, JsonSchemaGenerator schemaGenerator, JsonSchemaResolver schemaResolver)

Generates the properties for the given type.

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

Creates a JsonTypeDescription from a Type.

JsonTypeDescription GetDescription(ContextualType contextualType, JsonSchemaGeneratorSettings settings)

Creates a JsonTypeDescription from a Type.

Get converter that converts an enum value to a JSON string.

string GetPropertyName(ContextualAccessorInfo accessorInfo, JsonSchemaGeneratorSettings settings)

Gets the property name for the given accessor info.

bool IsNullable(ContextualType contextualType, ReferenceTypeNullHandling defaultReferenceTypeNullHandling)

Checks whether a type is nullable.

bool IsStringEnum(ContextualType contextualType, JsonSchemaGeneratorSettings settings)

Checks whether the give type is a string enum.