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

Need to drop rules when empty is allowed #326

Closed
crsharat opened this Issue Jul 19, 2017 · 1 comment

Comments

Projects
None yet
3 participants
@crsharat
Copy link

crsharat commented Jul 19, 2017

I dont know how to explain the issue but will share my code.

screenshot from 2017-07-19 11-38-39

It should not check for regex if data is empty.

Thanks

@funkyfuture

This comment has been minimized.

Copy link
Member

funkyfuture commented Aug 19, 2017

i pledge to mark this for the 1.2 milestone.

this can easily be realized with Validator._drop_remaining_rules.

@nicolaiarocci nicolaiarocci added this to the 1.2 milestone Aug 20, 2017

funkyfuture added a commit to funkyfuture/cerberus that referenced this issue Oct 2, 2017

Skip some rules on empty fields that are allowed to be empty.
This allows a less verbose definition of schemas that allow values to be
empty while havin expectations on non-empty values.

Closes pyeve#326.

funkyfuture added a commit to funkyfuture/cerberus that referenced this issue Oct 3, 2017

Skip some rules on empty fields that are allowed to be empty.
This allows a less verbose definition of schemas that allow values to be
empty while havin expectations on non-empty values.

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