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

public enum JakartaValidationOption extends Enum<JakartaValidationOption>
Flags to enable/disable certain aspects of the JakartaValidationModule's processing.
  • Enum Constant Details

    • NOT_NULLABLE_FIELD_IS_REQUIRED

      public static final JakartaValidationOption 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

      public static final JakartaValidationOption 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

      public static final JakartaValidationOption PREFER_IDN_EMAIL_FORMAT
      Use this option to indicate the "idn-email" format instead of "email" when an @Email annotation is being found.
      Beware that this format was only introduced in SchemaVersion.DRAFT_7.
    • INCLUDE_PATTERN_EXPRESSIONS

      public static final JakartaValidationOption INCLUDE_PATTERN_EXPRESSIONS
      Use this option to include a string's "pattern" according to @Pattern(regexp = "...") or @Email(regexp = "...").
  • Method Details

    • values

      public static JakartaValidationOption[] 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

      public static JakartaValidationOption valueOf(String name)
      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 name
      NullPointerException - if the argument is null