Enum Class JakartaValidationOption
java.lang.Object
java.lang.Enum<JakartaValidationOption>
com.github.victools.jsonschema.module.jakarta.validation.JakartaValidationOption
- All Implemented Interfaces:
Serializable,Comparable<JakartaValidationOption>,Constable
Flags to enable/disable certain aspects of the
JakartaValidationModule's processing.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse this option to include a string's "pattern" according to@Pattern(regexp = "...")or@Email(regexp = "...").Use this option to add not-nullable fields to their parent's list of "required" properties.Use this option to add not-nullable methods to their parent's list of "required" properties.Use this option to indicate the "idn-email" format instead of "email" when an@Emailannotation is being found. -
Method Summary
Modifier and TypeMethodDescriptionstatic JakartaValidationOptionReturns the enum constant of this class with the specified name.static JakartaValidationOption[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_NULLABLE_FIELD_IS_REQUIRED
Use this option to add not-nullable fields to their parent's list of "required" properties. -
NOT_NULLABLE_METHOD_IS_REQUIRED
Use this option to add not-nullable methods to their parent's list of "required" properties. -
PREFER_IDN_EMAIL_FORMAT
Use this option to indicate the "idn-email" format instead of "email" when an@Emailannotation is being found.
Beware that this format was only introduced inSchemaVersion.DRAFT_7. -
INCLUDE_PATTERN_EXPRESSIONS
Use this option to include a string's "pattern" according to@Pattern(regexp = "...")or@Email(regexp = "...").
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-