Align constraints support with Hibernate Validator 6

Closes gh-454
This commit is contained in:
Andy Wilkinson
2017-11-12 12:56:45 +00:00
parent ac1d8ec4ac
commit a17e17b00a
6 changed files with 178 additions and 15 deletions

View File

@@ -1131,25 +1131,37 @@ To take complete control of constraint resolution, your own implementation of
[[documenting-your-api-constraints-describing]]
==== Describing constraints
Default descriptions are provided for all of the Bean Validation 1.1's constraints:
Default descriptions are provided for all of Bean Validation 2.0's constraints:
* AssertFalse
* AssertTrue
* DecimalMax
* DecimalMin
* Digits
* Email
* Future
* FutureOrPresent
* Max
* Min
* Negative
* NegativeOrZero
* NotBlank
* NotEmpty
* NotNull
* Null
* Past
* PastOrPresent
* Pattern
* Positive
* PositiveOrZero
* Size
Default descriptions are also provided for constraints from Hibernate Validator:
Default descriptions are also provided for the following constraints from Hibernate
Validator:
* CodePointLength
* CreditCardNumber
* Currency
* EAN
* Email
* Length
@@ -1158,6 +1170,7 @@ Default descriptions are also provided for constraints from Hibernate Validator:
* Mod11Check
* NotBlank
* NotEmpty
* Currency
* Range
* SafeHtml
* URL