marshmallow icon indicating copy to clipboard operation
marshmallow copied to clipboard

`Eqaul(False)` can't validate correctly

Open pktangyue opened this issue 10 years ago • 1 comments

online = fields.Bool(required=True, attribute='active', validate=Equal(False))

I add this field to my Schema to accept a False value, but when I pass a False, it will raise {'online': [u'Invalid value.']} error.

pktangyue avatar Jun 29 '16 12:06 pktangyue

Thanks @pktangyue for reporting. This seems to be a bug. I would gladly review and merge a PR for this!

sloria avatar Jul 03 '16 16:07 sloria