Package dev.harrel.jsonschema
Class Dialects.Draft2019Dialect
java.lang.Object
dev.harrel.jsonschema.Dialects.Draft2019Dialect
- All Implemented Interfaces:
Dialect
- Enclosing class:
- Dialects
Dialect corresponding to draft2019-09 specification.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDefault $vocabulary keyword contents for this dialect.Core evaluator factory used by this dialect.Meta-schema URI against which all schemas will be validated, unless there is a $schema keyword present.All vocabulary URIs that are considered required at all times.Specification version used by this dialect.All vocabulary URIs that are supported by this dialect.
-
Constructor Details
-
Draft2019Dialect
public Draft2019Dialect()
-
-
Method Details
-
getSpecificationVersion
Description copied from interface:DialectSpecification version used by this dialect. Different versions are basically a modes in which validator can run in.- Specified by:
getSpecificationVersionin interfaceDialect- Returns:
- specification version
-
getMetaSchema
Description copied from interface:DialectMeta-schema URI against which all schemas will be validated, unless there is a $schema keyword present.- Specified by:
getMetaSchemain interfaceDialect- Returns:
- meta-schema URI
-
getEvaluatorFactory
Description copied from interface:DialectCore evaluator factory used by this dialect.- Specified by:
getEvaluatorFactoryin interfaceDialect- Returns:
- evaluator factory
-
getSupportedVocabularies
Description copied from interface:DialectAll vocabulary URIs that are supported by this dialect. Actual implementation for vocabularies and keywords should be provided byDialect.getEvaluatorFactory()- Specified by:
getSupportedVocabulariesin interfaceDialect- Returns:
- set of supported vocabularies
-
getRequiredVocabularies
Description copied from interface:DialectAll vocabulary URIs that are considered required at all times. If $vocabulary keyword does not include this vocabulary or sets it as optional,VocabularyExceptionwill be thrown.- Specified by:
getRequiredVocabulariesin interfaceDialect- Returns:
- set of required vocabularies
-
getDefaultVocabularyObject
Description copied from interface:DialectDefault $vocabulary keyword contents for this dialect. If meta-schema does not include $vocabulary keyword this default will be used.- Specified by:
getDefaultVocabularyObjectin interfaceDialect- Returns:
- default vocabulary object
-