Closed TimonPeng closed 7 months ago
Sure! PRs welcome.
Apologies, the current implementation has made it difficult to pin-point the exact reason for validation failure, without over-complicating the codebase.
Instead the users are provided with the following information, which they can cross-check to debug:
>>> import validators
>>> validators.visa("abcd")
ValidationError(func=visa, args={'value': 'abcd'}
There may be multiple reasons for validation failure:
For example, bank card number:
Can we return True when validation pass, and return fail reason then validation failed, then we can get the specific reason.
card.py
utils.py