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

Issue 4306 - Bean validation should fail if @Valid field is not introspected #4411

Merged
merged 3 commits into from Oct 30, 2020

Conversation

wetted
Copy link
Member

@wetted wetted commented Oct 29, 2020

Issue 4306 - Bean validation should fail if @Valid field is not introspected

  • emit validation failure when @Valid alone is applied to a container of elements where the element type is not @Introspected.
  • this does not address cases with additional constraint(s), since that might still be legal if the element type is supported by those constraints directly (e.g. @Valid @Size(min=1, max=2) List<String> strs), even though something like @Valid @Size(min=1, max=2) List<NotIntrospected> oops might be bogus.

…spected

- emit validation failure when @Valid alone is applied to a container of elements where the element type is not @introspected.
- this does not address cases with additional constraint(s), since that might still be legal if the element type is supported by those constraints directly (e.g. @Valid @SiZe(min=1, max=2) List<String> strs), even though something like @Valid @SiZe(min=1, max=2) List<NotIntrospected> oops might be bogus.
…spected

- emit validation failure when @Valid alone is applied to a container of elements where the element type is not @introspected.
- this does not address cases with additional constraint(s), since that might still be legal if the element type is supported by those constraints directly (e.g. @Valid @SiZe(min=1, max=2) List<String> strs), even though something like @Valid @SiZe(min=1, max=2) List<NotIntrospected> oops might be bogus.
…spected

- emit validation failure when @Valid alone is applied to a container of elements where the element type is not @introspected.
- this does not address cases with additional constraint(s), since that might still be legal if the element type is supported by those constraints directly (e.g. @Valid @SiZe(min=1, max=2) List<String> strs), even though something like @Valid @SiZe(min=1, max=2) List<NotIntrospected> oops might be bogus.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bean validation should fail if @Valid field is not introspected
2 participants