Home Dialect Class
Dialect Class
Cancel

Dialect Class

Namespace: Json.Schema

Inheritance: Dialect 🡒 object

Represents a JSON Schema dialect, defining the set of supported keywords and validation rules for a specific schema version.

Remarks

A dialect encapsulates the behavior and interpretation of JSON Schema keywords according to a particular specification draft. Use a specific dialect instance, such as Json.Schema.Dialect.Draft06, to validate or process schemas that conform to that draft. Dialects may differ in supported keywords, validation semantics, and handling of unknown keywords. This class is typically used to select the appropriate schema version when working

Properties

NameTypeSummary
AllowUnknownKeywordsboolGets a value indicating whether unknown keywords are permitted during processing.
DefaultDialectGets or sets the default JSON Schema dialect for new Json.Schema.BuildOptions objects.
Draft06DialectGets the JSON Schema dialect definition for Draft 6.
Draft07DialectGets the JSON Schema dialect definition for Draft 7.
Draft201909DialectGets the JSON Schema dialect definition for Draft 2019-09.
Draft202012DialectGets the JSON Schema dialect definition for Draft 2020-12.
IdUriGets the unique identifier for the dialect.
RefIgnoresSiblingKeywordsboolGets a value indicating whether references ignore sibling keywords during processing.
V1DialectGets the JSON Schema dialect definition for v1. This is the same as the latest yearly release in the v1 version.
V1_2026DialectGets the JSON Schema dialect definition for v1/2026.

Constructors

Dialect(IEnumerable<IKeywordHandler> keywords)

Initializes a new instance of the Dialect class using the specified collection of keyword handlers.

Declaration

1
public Dialect(IEnumerable<IKeywordHandler> keywords)
ParameterTypeDescription
keywordsIEnumerable<IKeywordHandler>A collection of keyword handlers to be included in the dialect. Each handler defines the behavior and metadata for

Remarks

The provided keyword handlers are used to configure the dialect’s keyword metadata and dependency

Contents