Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 4306 - Bean validation should fail if @Valid field is not intro…
…spected (#4411) * 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. * 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. * 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.
- Loading branch information
Showing
2 changed files
with
99 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters