mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Create ParameterErrors for type level constraint
Closes gh-34105
This commit is contained in:
+1
-1
@@ -367,7 +367,7 @@ public class MethodValidationAdapter implements MethodValidator {
|
||||
container = null;
|
||||
}
|
||||
|
||||
if (node.getKind().equals(ElementKind.PROPERTY)) {
|
||||
if (node.getKind().equals(ElementKind.PROPERTY) || node.getKind().equals(ElementKind.BEAN)) {
|
||||
nestedViolations
|
||||
.computeIfAbsent(parameterNode, k ->
|
||||
new ParamErrorsBuilder(parameter, value, container, index, key))
|
||||
|
||||
Reference in New Issue
Block a user