Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom validators #4

Open
claudiocn opened this issue Nov 6, 2020 · 0 comments
Open

Add custom validators #4

claudiocn opened this issue Nov 6, 2020 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@claudiocn
Copy link
Contributor

Is your feature request related to a problem? Please describe.
After using some equivalent guard clause libraries in other programming languages, using CheckArg fills like it's completely static, without having the dynamics that some of those libraries have: the ability to accept additional validators.

This is something really important in other languages (that make use of object definitions) and their validation could be done automatically for each internal property. Although Python might not be so object-oriented, its normal usage has its own objects and when developing big projects this feature can come really handy.

Describe the solution you'd like
This feature requires discussion to have a good solution, there are different ways to handle this kind of situations, from completely manual and static validator which would be outside the CheckArg scope to a validator registration in the CheckArg, requiring it to be an instance or something else that would catalog the registered validators.

This feature request aims to have something that can be registered and directly used those custom validator from CheckArg,

@claudiocn claudiocn added enhancement New feature or request help wanted Extra attention is needed labels Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Development

No branches or pull requests

1 participant