Table of Contents

Class JsonSchemaOptions

Namespace
Nerdbank.Json
Assembly
Nerdbank.Json.dll

Options for JSON Schema generation.

public sealed record JsonSchemaOptions : IEquatable<JsonSchemaOptions>
Inheritance
JsonSchemaOptions
Implements
Inherited Members

Properties

Default

Gets the shared immutable default options, which select Draft2020_12.

public static JsonSchemaOptions Default { get; }

Property Value

JsonSchemaOptions

Dialect

Gets the JSON Schema dialect to emit. The default is Draft2020_12.

public JsonSchemaDialect Dialect { get; init; }

Property Value

JsonSchemaDialect

Remarks

The default is fixed and will not change when support for newer dialects is added.