<PackageReference Include="NJsonSchema.Annotations" Version="11.5.2" />

NJsonSchema.Annotations.JsonSchemaFlattenAttribute

Annotation to merge all inherited properties into this class/schema.
public bool Flatten { get; }

Gets or sets a value indicating whether to flatten the given type.

Initializes a new instance of the JsonSchemaFlattenAttribute class.

public JsonSchemaFlattenAttribute(bool flatten)

Initializes a new instance of the JsonSchemaAbstractAttribute class.