Skip to content

@Valid annotations on container elements for handler argument validation not supported #32964

@bclozel

Description

@bclozel

As seen in #32886, constraints annotations are supported on container elements like:

public void addNames(List<@NotEmpty String> names)

Support was added in #31870, but it was incomplete. We should also support @Valid annotations on container elements:

public void addPeople(List<@Valid Person> people);

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions