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

Allow .add_rule() to overwrite existing rules #15

Open
gadenbuie opened this issue Jan 9, 2025 · 0 comments
Open

Allow .add_rule() to overwrite existing rules #15

gadenbuie opened this issue Jan 9, 2025 · 0 comments

Comments

@gadenbuie
Copy link
Contributor

It might be worth adding an argument to InputValidator.add_rule() that would allow users to overwrite existing rules. After #14, rules are composed.

In fact, another option would be to give .add_rule() a method argument, which could be one of "append" (default, current), "prepend" or "replace".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant