[bv-dev] Questions from BV spec 2.0 public draft

Matt Benson mbenson at apache.org
Tue Apr 25 14:05:19 EDT 2017


After reviewing the proposed API, I have the following
questions/suggestions. I apologize if any of these have already been
considered:

* Should there be a common superinterface for
Path$[BeanNode|PropertyNode|ContainerElementNode], all of which define
the same methods?

* Should ValidatorContext include a self type, as does Configuration?
This would facilitate the use of custom ValidatorContext subclasses.

* Should Positive/Negative#strict() default true be provided as
#orZero() default false, for commonality with
[Past|Future]#orPresent() ?

Matt


More information about the beanvalidation-dev mailing list