[bv-dev] Marker to trigger method validation

Emmanuel Bernard emmanuel at hibernate.org
Mon Aug 27 12:46:49 EDT 2012


Gunnar,

We have been discussing whether or not `@MethodValidated` should be be present to trigger validation or not.
Do we have a JIRA issue that capture that discussion?

My current feeling is the following:

- we should propose that if the annotation is not present, method validation is performed for params and return value with the `Default` group
- if someone wants to override either the group or the validation mode, it must use `@MethodValidated`.

I also would like to be stronger and enforce the inheritance rules. Why did we decide to makes them simple recommendations? Any specific use case?

http://beanvalidation.org/latest-draft/spec/#validationapi-triggeringmethodvalidation


More information about the beanvalidation-dev mailing list