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
Hello. I'm working on a new spring shell project, and I cannot get parameter validation to display correctly.
Per docs, it should print the error like this:
The following constraints were not met:
--password string : size must be between 8 and 40 (You passed 'hello')
But instead I get:
The following constraints were not met:
`ConstraintViolationImpl{interpolatedMessage='size must be between 8 and 40', propertyPath=changePassword.password, rootBeanClass=class com.example.test.commands.MyCommands, messageTemplate='{jakarta.validation.constraints.Size.message}'}`
ConstraintViolationImpl is from hibernate-validator:8.0.1.Final. It seems it doesn't have the nice toString method that ParameterValidationExceptionResultHandler expects?
The text was updated successfully, but these errors were encountered:
Hello. I'm working on a new spring shell project, and I cannot get parameter validation to display correctly.
Per docs, it should print the error like this:
But instead I get:
ConstraintViolationImpl is from hibernate-validator:8.0.1.Final. It seems it doesn't have the nice toString method that ParameterValidationExceptionResultHandler expects?
The text was updated successfully, but these errors were encountered: