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.

    • Method Summary

      Modifier and Type Method Description
      final FormatValidationPolicy valueOf(String value) Returns the enum constant of this type with the specified name.
      final Array<FormatValidationPolicy> values() Returns an array containing the constants of this enum type, in the order they're declared.
      final EnumEntries<FormatValidationPolicy> getEntries()
      • Methods inherited from class kotlin.Enum

        getName, getOrdinal
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait