Browse Source

Fix error codes in Customizing Validation Errors section

See gh-33354
pull/33365/head
Gonçalo Silva 2 years ago committed by Stéphane Nicoll
parent
commit
43217bdf06
  1. 2
      framework-docs/modules/ROOT/pages/core/validation/beanvalidation.adoc

2
framework-docs/modules/ROOT/pages/core/validation/beanvalidation.adoc

@ -431,7 +431,7 @@ Kotlin::
A `ConstraintViolation` on `Person.name()` is adapted to a `FieldError` with the following: 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) - Message arguments `"name"`, `10`, and `1` (the field name and the constraint attributes)
- Default message "size must be between 1 and 10" - Default message "size must be between 1 and 10"

Loading…
Cancel
Save