Skip to content

Instantly share code, notes, and snippets.

@Allwin12
Created July 5, 2020 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Allwin12/a7920a8a9ef4eb34bdea5f67b7c3cd76 to your computer and use it in GitHub Desktop.
Save Allwin12/a7920a8a9ef4eb34bdea5f67b7c3cd76 to your computer and use it in GitHub Desktop.
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