Closed bnMikheili closed 4 years ago
Create new class RPV (RulePipeValidator), which is responsible for connecting rules with each other.
Example:
request = {"age": 23} rule = {"age": "size:23"} result = Validator(request, rule).validate() # False request = {"age": 23} rule = {"age": "integer|size:23"} result = Validator(request, rule).validate() # True
Please see tests for rpv for more examples tests/test_rpv.py
tests/test_rpv.py
Create new class RPV (RulePipeValidator), which is responsible for connecting rules with each other.
Example:
Please see tests for rpv for more examples
tests/test_rpv.py