Home Vocabulary Class
Vocabulary Class
Cancel

Vocabulary Class

Namespace: Json.Schema

Inheritance: Vocabulary 🡒 object

Represents a collection of keyword handlers associated with a specific vocabulary identifier.

Remarks

Only JSON Schema drafts 2019-09 and 2020-12 make use of vocabularies. A vocabulary defines a set of keywords and their corresponding handlers, typically used to interpret or validate structured data according to a particular specification. The vocabulary is identified by a unique URI, and its keywords determine the

Properties

NameTypeSummary
Draft201909_ApplicatorVocabularyGets the Applicator vocabulary definition in JSON Schema Draft 2019-09.
Draft201909_ContentVocabularyGets the Content vocabulary definition in JSON Schema Draft 2019-09.
Draft201909_CoreVocabularyGets the Core vocabulary definition in JSON Schema Draft 2019-09.
Draft201909_FormatVocabularyGets the Format vocabulary definition in JSON Schema Draft 2019-09.
Draft201909_MetaDataVocabularyGets the Meta-Data vocabulary definition in JSON Schema Draft 2019-09.
Draft201909_ValidationVocabularyGets the Validation vocabulary definition in JSON Schema Draft 2019-09.
Draft202012_ApplicatorVocabularyGets the Applicator vocabulary definition in JSON Schema Draft 2019-09.
Draft202012_ContentVocabularyGets the Content vocabulary definition in JSON Schema Draft 2019-09.
Draft202012_CoreVocabularyGets the Core vocabulary definition in JSON Schema Draft 2019-09.
Draft202012_FormatAnnotationVocabularyGets the Format-Annotation vocabulary definition in JSON Schema Draft 2019-09.
Draft202012_FormatAssertionVocabularyGets the Format-Assertion vocabulary definition in JSON Schema Draft 2019-09.
Draft202012_MetaDataVocabularyGets the Meta-Data vocabulary definition in JSON Schema Draft 2019-09.
Draft202012_UnevaluatedVocabularyGets the Unevaluated vocabulary definition in JSON Schema Draft 2019-09.
Draft202012_ValidationVocabularyGets the Validation vocabulary definition in JSON Schema Draft 2019-09.
IdUriGets the unique identifier for this resource as a URI.
KeywordsIKeywordHandler[]Gets the collection of keyword handlers associated with the current instance.

Constructors

Vocabulary(Uri id, IEnumerable<IKeywordHandler> keywords)

Initializes a new instance of the Vocabulary class with the specified identifier and keyword handlers.

Declaration

1
public Vocabulary(Uri id, IEnumerable<IKeywordHandler> keywords)
ParameterTypeDescription
idUriThe unique identifier for the vocabulary. Cannot be null.
keywordsIEnumerable<IKeywordHandler>One or more collections of keyword handlers to associate with the vocabulary.

Remarks

All provided keyword handler collections are combined into a single set for the vocabulary.

Contents