-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validator.validate isn't filling the object name #826
Comments
I'll answer for this issue in english because its our default language to talk here. This is not a bug, but an expected behavior because using manual validation we can't discovery the name of instance you trying to validate. I'll explain. In the automatic validation we can easily discovery the parameter name using Paranamer. If you have a controller method called In the manual validation you call the method with signature public void add(User user, User anotherUser) {
validation.validate(user);
validation.validate(anotherUser);
} In runtime there is no way to discovery that the instance passed to May we can add a method @lucascs @Turini What you think about this case? Note: I'll change the issue title to allow a better explanation about the case |
👍 to add the |
indeed |
Ao fazer a validação com o validator.validate da seguinte forma:
não é possível capturar o erro na view da utilizando:
The text was updated successfully, but these errors were encountered: