-
Notifications
You must be signed in to change notification settings - Fork 30
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
Output value together with validation error #63
Comments
I think #7 would definitely be the right solution to this. I'll add more context into that issue, because I believe there are a few important pre-requisites. |
This is only relevant for a small fraction of use cases and it can be easily handled by some attribute per field, e.g. |
I'm not sure about that. I'd prefer to not have my validation library leak secrets by default, and require me to think about what is sensitive and what isn't. My endgame is for |
When the value of a field doesn’t pass the validation rule, I’d like to print a string representation of the value. This is supported in the validator crate, but not in garde.
Do you have an idea of how this could be ideally done?
This could also be solved by #7.
The text was updated successfully, but these errors were encountered: