Enum FormatValidationPolicy
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum FormatValidationPolicy extends Enum<FormatValidationPolicy>
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final Integerordinalprivate final EnumEntries<FormatValidationPolicy>entries
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYSValidation against the "format" keyword is always enabled, irrespective of the meta-schema contents.
NEVERValidation against the "format" keyword is never done, irrespective of the meta-schema contents.
DEPENDS_ON_VOCABULARYValidation 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 FormatValidationPolicyvalueOf(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()-
-
Method Detail
-
valueOf
final FormatValidationPolicy valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
values
final Array<FormatValidationPolicy> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getEntries
final EnumEntries<FormatValidationPolicy> getEntries()
-
-
-
-