jirutka / validator-spring

Bean Validator utilizing Spring Expression Language (SpEL)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does this support jsr 303 bean validation groups?

cm325 opened this issue · comments

For any validation annotation to be useful in our applications, it has to support the bean validation groups, so that we can run validation on a request by request basis and only run the validations we need for a specific group. If this supported groups, we would start using it immediately!

Yes, it support validation groups.

Interesting, I didn't see any examples in the documentation? Is it as
sample as including the groups={ Employee.class, Contractor.class }
attribute in the annotation?

On Thu, May 28, 2015 at 12:34 PM, Jakub Jirutka notifications@github.com
wrote:

Yes, it support validation groups.


Reply to this email directly or view it on GitHub
#5 (comment)
.

This isn’t responsibility of validation constraint, but Bean Validation framework. Constraint annotation must define groups() attribute (here) and that’s all.