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

JsonSchemaAttribute

Annotation to specify the JSON Schema type for the given class.
public Type ArrayItem { get; set; }

Gets or sets the array item type.

public string Format { get; set; }

Gets or sets the JSON format type (default: null, i.e. derived from Type).

public string Name { get; set; }

Gets or sets the name identifier of the schema which is used as key in the 'definitions' list.

public JsonObjectType Type { get; }

Gets the JSON Schema type (default: None, i.e. derived from Type).

Initializes a new instance of the JsonSchemaAttribute class.

public JsonSchemaAttribute(string name)

Initializes a new instance of the JsonSchemaAttribute class.

Initializes a new instance of the JsonSchemaAttribute class.