Backplane. JsonSchema. Draft202012. Vocabulary
(backplane_json_schema v1.10.58)
Copy Markdown
Maps JSON Schema keywords to their Draft 2020-12 vocabulary URIs and defines both the full supported vocabulary set and the built-in Draft 2020-12 default active vocabulary set.
Used by Backplane.JsonSchema.Compiler to check whether a keyword is allowed based on the
active vocabulary set, and to resolve $vocabulary declarations.
Examples
iex> Backplane.JsonSchema.Draft202012.Vocabulary.keyword("type")
"https://json-schema.org/draft/2020-12/vocab/validation"
iex> Backplane.JsonSchema.Draft202012.Vocabulary.keyword("properties")
"https://json-schema.org/draft/2020-12/vocab/applicator"
iex> Backplane.JsonSchema.Draft202012.Vocabulary.keyword("unknown")
nil
Summary
Functions
Returns the full list of vocabularies supported by Backplane.JsonSchema.
Returns the built-in default active vocabularies for the standard Draft 2020-12 dialect.
Returns the format-annotation vocabulary URI.
Returns the format-assertion vocabulary URI.
Returns the vocabulary URI for a given JSON Schema keyword, or nil if unknown.
Functions
@spec defaults() :: list()
Returns the full list of vocabularies supported by Backplane.JsonSchema.
This is the implementation capability set used when validating required
$vocabulary declarations.
@spec draft2020_12_defaults() :: list()
Returns the built-in default active vocabularies for the standard Draft 2020-12 dialect.
This excludes format-assertion, which is not enabled by default for the
standard Draft 2020-12 dialect.
Returns the format-annotation vocabulary URI.
Returns the format-assertion vocabulary URI.
Returns the vocabulary URI for a given JSON Schema keyword, or nil if unknown.