Closed joelittlejohn closed 1 year ago
If you receive compilation errors because javax.validation.constraints.Email cannot be found, upgrade to javax.validation/validation-api 2.0.1.Final.
If you receive compilation errors because javax.validation.constraints.Email cannot be found, upgrade to javax.validation/validation-api 2.0.1.Final.
Note that given annotation can't be used when targetVersion
is less that 1.8
as it has:
@Retention(RUNTIME)
@Target
contains TYPE_USE
which is available since 1.8
Those who target older version might also need to make sure that version of javax.validation/validation-api
being used is compatible with targetVersion
Nice work!
Things to consider if are using the includeJsr303Annotations feature:
jakarta.validation.constraints.Email
added to a property when using"format":"email"
.javax.validation.constraints.Email
added to a property when using"format":"email"
.