Class Dialects.Draft2020Dialect

java.lang.Object
dev.harrel.jsonschema.Dialects.Draft2020Dialect
All Implemented Interfaces:
Dialect
Enclosing class:
Dialects

public static class Dialects.Draft2020Dialect extends Object implements Dialect
Dialect corresponding to draft2020-12 specification.
  • Constructor Details

    • Draft2020Dialect

      public Draft2020Dialect()
  • Method Details

    • getSpecificationVersion

      public SpecificationVersion getSpecificationVersion()
      Description copied from interface: Dialect
      Specification version used by this dialect. Different versions are basically a modes in which validator can run in.
      Specified by:
      getSpecificationVersion in interface Dialect
      Returns:
      specification version
    • getMetaSchema

      public String getMetaSchema()
      Description copied from interface: Dialect
      Meta-schema URI against which all schemas will be validated, unless there is a $schema keyword present.
      Specified by:
      getMetaSchema in interface Dialect
      Returns:
      meta-schema URI
    • getEvaluatorFactory

      public EvaluatorFactory getEvaluatorFactory()
      Description copied from interface: Dialect
      Core evaluator factory used by this dialect.
      Specified by:
      getEvaluatorFactory in interface Dialect
      Returns:
      evaluator factory
    • getSupportedVocabularies

      public Set<String> getSupportedVocabularies()
      Description copied from interface: Dialect
      All vocabulary URIs that are supported by this dialect. Actual implementation for vocabularies and keywords should be provided by Dialect.getEvaluatorFactory()
      Specified by:
      getSupportedVocabularies in interface Dialect
      Returns:
      set of supported vocabularies
    • getRequiredVocabularies

      public Set<String> getRequiredVocabularies()
      Description copied from interface: Dialect
      All vocabulary URIs that are considered required at all times. If $vocabulary keyword does not include this vocabulary or sets it as optional, VocabularyException will be thrown.
      Specified by:
      getRequiredVocabularies in interface Dialect
      Returns:
      set of required vocabularies
    • getDefaultVocabularyObject

      public Map<String,Boolean> getDefaultVocabularyObject()
      Description copied from interface: Dialect
      Default $vocabulary keyword contents for this dialect. If meta-schema does not include $vocabulary keyword this default will be used.
      Specified by:
      getDefaultVocabularyObject in interface Dialect
      Returns:
      default vocabulary object