-
Notifications
You must be signed in to change notification settings - Fork 204
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
I'd like to propose validator.validateProperty(Object bean, String propertyName, SomeGroupValidation.class) #569
Comments
For all those who don't think it can be useful, here it's an example: public class Book {
} For now, we can't validate only numOfPages field with vraptor validator. But it's possible with hibernate validator: hibernateValidator.validateProperty(book, "numOfPages", Printing.class); |
Already implemented. Please, look BeanValidator.validateProperties, that you can define properties to be validated. |
Garcia, It's not implemented as you said. There's no BeanValidator.validateProperty(Object bean, String propertyName, SomeGroupValidation.class) |
Today we can validate some properties: We don't have an implementation as @ThiagoDosSantos suggested. |
My mistake. Thiago, can you send a pull request to us? Thanks |
Thanks a lot! |
As hibernate validator has this method, I think it'd be useful to have this method in vraptor validator as well. And it's very simple to implement!
The text was updated successfully, but these errors were encountered: