Fallback to BeanPropertyBindingResult for unbound property validation
gh-17424 updated `ValidationBindHandler` so that it would only look at bound values when validating. This commit updates `ValidationBindHandler` to use Spring Framework's `BeanPropertyBindingResult`. This means that for fields that are not bound, JavaBean accessor methods can be used to get the value to validate. Fixes gh-25356
This commit is contained in:
@@ -49,4 +49,5 @@
|
||||
<suppress files="LinuxDomainSocket" checks="FinalClass" message="SockaddrUn" />
|
||||
<suppress files="BsdDomainSocket" checks="FinalClass" message="SockaddrUn" />
|
||||
<suppress files="StringSequence" checks="SpringMethodVisibility" message="isEmpty"/>
|
||||
<suppress files="ValidatorPropertiesWithDefaultValues\.java" checks="SpringMethodVisibility" />
|
||||
</suppressions>
|
||||
|
||||
Reference in New Issue
Block a user