Allow validation of Set method parameters
See gh-33150
This commit is contained in:
committed by
rstoyanchev
parent
bc2deef951
commit
f0c758498b
@@ -346,6 +346,10 @@ public class MethodValidationAdapter implements MethodValidator {
|
||||
value = map.get(key);
|
||||
container = map;
|
||||
}
|
||||
else if (arg instanceof Set<?>) {
|
||||
value = arg;
|
||||
container = null;
|
||||
}
|
||||
else if (arg instanceof Optional<?> optional) {
|
||||
value = optional.orElse(null);
|
||||
container = optional;
|
||||
|
||||
Reference in New Issue
Block a user