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

JsonSchemaGeneratorSettings

The JSON Schema generator settings.
public EnumHandling DefaultEnumHandling { get; set; }

Gets or sets the default enum handling (default: Integer).

Gets or sets the default property name handling (default: Default).

public bool FlattenInheritanceHierarchy { get; set; }

Gets or sets a value indicating whether to flatten the inheritance hierarchy instead of using allOf to describe inheritance (default: false).

public bool GenerateKnownTypes { get; set; }

Gets or sets a value indicating whether to generate schemas for types in KnownTypeAttribute attributes (default: true).

public NullHandling NullHandling { get; set; }

Gets or sets the property nullability handling.

public ICollection<ITypeMapper> TypeMappers { get; set; }

Gets or sets the type mappings.

Gets or sets the type name generator.

Initializes a new instance of the JsonSchemaGeneratorSettings class.