Allow custom @Validated annotations for handler method parameters [SPR-12406] #17014
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Vadim opened SPR-12406 and commented
Extend
@Validated
with Target.Annotation allowing the creation of custom@Validated
annotations.The result will be:
public boolean registerNewUser(
@RegisterValid
@RequestBody
User newUser) {instead of
public boolean registerNewUser(
@Validated
({Default.class, RegisterGroup.class,VIP.class....})@RequestBody
User newUser) {Affects: 4.0.7, 4.1.1
Issue Links:
@Validated
should allow ElementType.METHOD targetReferenced from: commits 929cda6
The text was updated successfully, but these errors were encountered: