New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`Eqaul(False)` can't validate correctly #484

Closed
pktangyue opened this Issue Jun 29, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@pktangyue

pktangyue commented Jun 29, 2016

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.

@sloria

This comment has been minimized.

Member

sloria commented Jul 3, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment