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

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 bool GenerateXmlObjects { get; set; }

Gets or sets a value indicating whether to generate xmlObject representation for definitions (default: false).

public NullHandling NullHandling { get; set; }

Gets or sets the property nullability handling.

Gets or sets the schema name generator.

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.