Skip to content
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
Closed

Need to drop rules when empty is allowed #326

crsharat opened this issue Jul 19, 2017 · 1 comment

Comments

@crsharat
Copy link

@crsharat 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
Copy link
Member

@funkyfuture 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
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
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
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants