Skip to content

Commit

Permalink
Fix error codes in Customizing Validation Errors section
Browse files Browse the repository at this point in the history
  • Loading branch information
GoncaloPT authored and snicoll committed Aug 9, 2024
1 parent a31945f commit 43217bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 43217bd

Please sign in to comment.