Created
July 5, 2020 15:15
-
-
Save Allwin12/a7920a8a9ef4eb34bdea5f67b7c3cd76 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from validator import validate | |
reqs = {"name": "", | |
"mail": "jon_doe"} | |
rule = {"name": "required", | |
"mail": "mail"} | |
result, errors = validate(reqs, rule, return_errors=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment