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

Proper validation layer #363

Open
mattias-p opened this issue Dec 18, 2023 · 0 comments
Open

Proper validation layer #363

mattias-p opened this issue Dec 18, 2023 · 0 comments

Comments

@mattias-p
Copy link
Member

Zonemaster CLI accepts user inputs through command line arguments.
Today the validation logic for these values is spread out.
It's non-trivial to review and verify that all these inputs are in fact
validated before they're used and that the implemented validation rules match
the documented ones.

Zonemaster CLI should have a clearly delimited validation layer where all
command line arguments must pass through and where all validation logic is
invoked.

Having this validation layer located close to the argument parsing would also
make it easier to maintain cohesive command line argument validation error
messages.

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