Create ParameterErrors for type level constraint

Closes gh-34105
This commit is contained in:
rstoyanchev
2024-12-19 14:45:44 +00:00
parent d5bebd5ced
commit 59ed4686c5
2 changed files with 103 additions and 4 deletions

View File

@@ -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))