@Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface UnwrapByDefault
ValueExtractor
definition so that it is applied automatically when
detecting constraints declared on the container type supported by the extractor, causing
the constraints to be applied to the container's elements instead of the container.
If needed, this behavior can be changed per constraint using Unwrapping.Skip
,
causing the constraints to be applied to the container itself:
@SomeConstraint(payload = Unwrapping.Skip.class) SomeContainerType container;
Comments to: bean-validation-dev@eclipse.org.
Copyright © 2019,2020 Eclipse Foundation.
Use is subject to EFSL; this spec is based on material that is licensed under the Apache License, version 2.0.