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 a plugin architecture allowing registration of custom types #14

Open
stefcameron opened this issue Feb 18, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@stefcameron
Copy link
Owner

Custom validators are currently the only way to verify a value on an attribute that isn't natively supported by the library.

The library has been positioned in a way that should make supporting plugins possible, with its concepts of type validations and type validators, but there may be a lot of work remaining to do.

A plugin architecture would allow someone to register (i.e. add support for) a type and a validator (and perhaps a validation) such that it would then be treated as a known type when performing verifications.

Some thoughts are already in the code as comments, marked with TODO[plugins] headers.

@stefcameron stefcameron added the enhancement New feature or request label Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant