Home Vocabulary Class
Vocabulary Class
Cancel

Vocabulary Class

Namespace: Json.Schema

Inheritance: Vocabulary 🡒 object

Represents a Draft 2019-09 and later vocabulary.

Properties

NameTypeSummary
IdUriThe vocabulary ID.
KeywordsIReadOnlyCollection<Type>The types of the keywords that are defined by the vocabulary.

Constructors

Vocabulary(string id, params Type[] keywords)

Creates a new Json.Schema.Vocabulary.

Declaration

1
public Vocabulary(string id, params Type[] keywords)
ParameterTypeDescription
idstringThe vocabulary ID.
keywordsparams Type[]The types of the keywords that are defined by the vocabulary.

Vocabulary(string id, IEnumerable<Type> keywords)

Creates a new Json.Schema.Vocabulary.

Declaration

1
public Vocabulary(string id, IEnumerable<Type> keywords)
ParameterTypeDescription
idstringThe vocabulary ID.
keywordsIEnumerable<Type>The types of the keywords that are defined by the vocabulary.
Contents