Fix error codes in Customizing Validation Errors section
See gh-33354
This commit is contained in:
parent
a31945f8b6
commit
43217bdf06
|
|
@ -431,7 +431,7 @@ Kotlin::
|
|||
|
||||
A `ConstraintViolation` on `Person.name()` is adapted to a `FieldError` with the following:
|
||||
|
||||
- Error codes `"Size.student.name"`, `"Size.name"`, `"Size.java.lang.String"`, and `"Size"`
|
||||
- Error codes `"Size.person.name"`, `"Size.name"`, `"Size.java.lang.String"`, and `"Size"`
|
||||
- Message arguments `"name"`, `10`, and `1` (the field name and the constraint attributes)
|
||||
- Default message "size must be between 1 and 10"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue