Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
bclozel opened this issue Jun 5, 2024 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Milestone

Comments

@bclozel
Copy link
Member

bclozel commented Jun 5, 2024

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);
@bclozel bclozel added in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug labels Jun 5, 2024
@bclozel bclozel added this to the 6.1.9 milestone Jun 5, 2024
@bclozel bclozel self-assigned this Jun 5, 2024
@bclozel bclozel changed the title Support @Valid annotations on container elements for handler argument validation @Valid annotations on container elements for handler argument validation not supported Jun 5, 2024
@bclozel bclozel closed this as completed in 404c4d9 Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant