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

ReflectionServiceBase<TSettings>

public abstract class ReflectionServiceBase<TSettings> : IReflectionService where TSettings : JsonSchemaGeneratorSettings
The default reflection service implementation.

public abstract void GenerateProperties(JsonSchema schema, ContextualType contextualType, TSettings settings, JsonSchemaGenerator schemaGenerator, JsonSchemaResolver schemaResolver)

public JsonTypeDescription GetDescription(ContextualType contextualType, ReferenceTypeNullHandling defaultReferenceTypeNullHandling, TSettings settings)

Creates a JsonTypeDescription from a Type.

protected virtual JsonTypeDescription GetDescription(ContextualType contextualType, TSettings settings, Type originalType, bool isNullable, ReferenceTypeNullHandling defaultReferenceTypeNullHandling)

Creates a JsonTypeDescription from a Type.

public abstract Func<object, string> GetEnumValueConverter(TSettings settings)

public abstract string GetPropertyName(ContextualAccessorInfo accessorInfo, JsonSchemaGeneratorSettings settings)

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 virtual bool IsStringEnum(ContextualType contextualType, TSettings settings)

Checks whether the give type is a string enum.