kvesteri/wtforms-json — pull request #26 by alanhamlett (2014-06-01 09:00:39+00:00)
Title: monkey patch validators.Optional to work with patch_data

This is for #22 and #20.

Patches `validators.Optional` providing 3 new optional kwargs:
* _message_ - for a custom error message
* _nullable_ - when `True`, allows `None` for this field
* _blank_ - when `True`, allows empty string for this field

_nullable_ and _blank_ are True by default, which means the patched `Optional` does not change behavior unless _nullable_ or _blank_ are set to `False`.