You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Owner edit form has been modified to add a server side validator to the description of a pet in the list of pets requiring between 3 and 100 characters.
I added a small servlet filter to replace the server side response body with the correct parameterName in org.springframework.samples.petclinic.FixValidationResponseWithBrackets
The project currently works because of the servlet filter but as soon as it is removed the validation error message is not shown any more.
System Info
Hilla 24.6.0
The text was updated successfully, but these errors were encountered:
Describe the bug
The error messages are not displayed on the field for server side validators when using the array data binding.
The parameterName is generated with bracket notation from the server side and it looks like this:
"parameterName":"pets[0].description"
The frontend code expects the parameterName to look like this:
"parameterName":"pets.0.description"
Expected-behavior
The server side validation message should be shown.
Reproduction
I modified the pet clinic project to demonstrate the issue available here: https://github.com/aspan/spring-petclinic-hilla/tree/develop
The Owner edit form has been modified to add a server side validator to the description of a pet in the list of pets requiring between 3 and 100 characters.
I added a small servlet filter to replace the server side response body with the correct parameterName in
org.springframework.samples.petclinic.FixValidationResponseWithBrackets
The project currently works because of the servlet filter but as soon as it is removed the validation error message is not shown any more.
System Info
Hilla 24.6.0
The text was updated successfully, but these errors were encountered: