Closed as not planned
Description
Validation annotations on ArgumentValue are not working as there's no ValueExtractor provided.
For example, this code ArgumentValue<@NotBlank @Size(min = 2, max = 500) String> name
will not work as expected.
Adding ValueExtractor will solve the issue
@UnwrapByDefault
public class ArgumentValueExtractor implements ValueExtractor<ArgumentValue<@ExtractedValue ?>> {
@Override
public void extractValues(ArgumentValue<?> originalValue, ValueReceiver receiver) {
if (originalValue.isPresent()) {
receiver.value(null, originalValue.value());
}
}
}