Fix error codes in Customizing Validation Errors section

See gh-33354
This commit is contained in:
Gonçalo Silva 2024-08-08 16:50:13 +01:00 committed by Stéphane Nicoll
parent a31945f8b6
commit 43217bdf06
1 changed files with 1 additions and 1 deletions

View File

@ -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"