Jakarta Validation

Jakarta Validation 4.0

Jakarta Validation 4.0 is still under development.

It is part of Jakarta EE 12 (but can of course be used with plain Java SE as the previous releases).

Implementations

Name Version Jakarta EE
Hibernate Validator 10.0.0-SNAPSHOT Jakarta EE 12

TCK

The TCK for Jakarta Validation 4.0 can be found here .

Changes between Jakarta Validation 4.0 and Jakarta Bean Validation 3.1

  • Support for ConstraintValidator declaration via the service loader mechanism was added.

  • The validatedBy attribute on the jakarta.validation.Constraint was made optional; an empty array being the default.

  • A simpler way to get a single attribute from ConstraintDescriptor was introduced.

  • Support for string representation of numbers by Min / Max constraints was clarified.

  • Some methods of the ConstraintViolationBuilder were deprecated. Previously, they were only deprecated in the Javadoc comments.

  • The expectations on applying @Valid twice were clarified.

Feedback

Do you have feedback? Talk to us:

If you want to take the next step and contribute, read how to contribute.