When form is submitted via JSON and data is set using field.process(None, data), Optional always stops the validation chain, because it checks only field.raw_data which will always be None.
Fix for issue #842 .
Optional validator should check field.data to validate fields correctly.
When form is submitted via JSON and data is set using
field.process(None, data)
,Optional
always stops the validation chain, because it checks onlyfield.raw_data
which will always beNone
.Fix for issue #842 .
Optional
validator should checkfield.data
to validate fields correctly.