[bv-dev] BVAL-436 disable executable validation altogether
Hardy Ferentschik
hardy at hibernate.org
Wed Mar 13 07:53:57 EDT 2013
On 13 Jan 2013, at 11:54 AM, Gunnar Morling <gunnar at hibernate.org> wrote:
> What I like about approach #2 is that it bundles the configuration related to executable validation in one element.
>
> Maybe an attribute could be used for the flag:
>
> <executable-validation enabled="true|false">
> <default-validated-executables>
> <executable-type>NONE</executable-type>
> </default-validated-executables>
> </executable-validation>
the enabled flag seems need, but we would need then probably another object in BootstrapConfiguration wrapping the
executable-validation config. I am not sure this is worth it.
> Generally I like "positive" flag names better than negated ones (i.e. "enabled" instead of "disabled").
In this case I actually prefer isValidationExecutionDisabled(). That's the more relevant/interesting case.
--Hardy
More information about the beanvalidation-dev
mailing list