Simplify defining group on method validation

Description

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?

Environment

None

Status

Assignee

Unassigned

Reporter

Lovro Pandzic

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Fix versions

Priority

Major