Enum FormatValidationPolicy

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ALWAYS

      Validation against the "format" keyword is always enabled, irrespective of the meta-schema contents.

      NEVER

      Validation against the "format" keyword is never done, irrespective of the meta-schema contents.

      DEPENDS_ON_VOCABULARY

      Validation against the "format" keyword is enabled only if the meta-schema declares @{code https://json-schema.org/draft/2020-12/vocab/format-assertion} in its @{code $vocabularies} object.

      Be aware that this is the default behavior, and the draft2020-12 meta-schema does NOT declare the format-assertion vocabulary, hence format validation will be disabled.