|
The basic idea is to bring Spring's @Validated in some form into the specification.
Currently it is possible to mimic this behavior by using @ConvertGroup, for example:
MyBean update(@NotNull @Validated(Update.class) MyBean mybean);
can be translated to
MyBean update(@NotNull @Valid @ConvertGroup(from = Default.class, to = Update.class) MyBean mybean);
but this a lot more verbose. I've seen that the current design tries to separate group definition from @Valid which is fine, but the current API should be simplified, possibly by making from default to Default.class?
|