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

JsonSchemaGeneratorSettings

The JSON Schema generator settings.

Gets the contract resolver.

public IContractResolver ContractResolver { get; set; }

Gets or sets the contract resolver.

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

Gets or sets a value indicating whether to generate abstract properties (i.e. interface and abstract properties. Properties may defined multiple times in a inheritance hierarchy, 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.

Gets or sets the schema processors.

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.