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
Dialect
Gets the JSON Schema dialect to emit. The default is Draft2020_12.
public JsonSchemaDialect Dialect { get; init; }
Property Value
Remarks
The default is fixed and will not change when support for newer dialects is added.