CSenshi / Validator

Easy-to-use, Highly Configurable Python Data Validator. Inspired by Laravel Validator
https://pypi.org/project/validator/
MIT License
46 stars 23 forks source link

New Rule: Between #8

Closed CSenshi closed 4 years ago

CSenshi commented 4 years ago

Implement Rule called Between, which takes in 2 inputs min_value and max_value and checks whether given value is in given range.

Key Detail: Given Rule should be implemented with already written 2 Rules (Min and Max). Between class should be child of those 2 class and should use there call function This is good feature to check whether it is possible for user to use already written rules in there own newly written rules.