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: UUIDv3 #73

Closed CSenshi closed 4 years ago

CSenshi commented 4 years ago

Rule Name: UUIDv3

Rule Description: The field under validation must be a valid Universally Unique IDentifier version 3. UUIDv3 is time based.

Rule Usage Example:

reqs = {'data' : 'a3bb189e-8bf9-3888-9912-ace4e6543002}
rule = {'data' : 'uuidv2'}
validate(reqs, rule) # True

reqs = {'data' : 'bba617b4-364b-4a0d-9e96-cb8a24ef1bec'}
rule = {'data' : 'uuidv2'}
validate(reqs, rule) # False, it's uuidv4

Before contributing please review RULES.md (check for duplication), also check CONTRIBUTING.md for more details :100:

z13z commented 4 years ago

I intend to work on this issue

CSenshi commented 4 years ago

Please view UUIDv4 Rule and try to make it as given uuidv4 is implemented :wink: