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

Validation rules as struct tags #13

Open
benhalstead opened this issue Apr 15, 2019 · 0 comments
Open

Validation rules as struct tags #13

benhalstead opened this issue Apr 15, 2019 · 0 comments

Comments

@benhalstead
Copy link
Member

As an alternative to specify validation rules in configuration, it should be fairly straightforward to have those rules defined as struct tags. This pattern is common in languages with annotation support and would make unit testing of validation rules easier (as well as sidestepping some of the JSON and YAML layout issues with validation rules)

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

No branches or pull requests

1 participant