-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Continue parsing for more missing required values #45
Comments
Oh that's interesting. This crate relies heavily on serde and I'm not sure that serde provides that hook but I can do some investigation. |
@softprops Any progress? That would be super handy! :) |
Is it possible to create a custom serde deserializer that, when trying to deserialize a given struct property, checks for failure then save an error context (like a "names of the missing required fields" vector) and then continue the deserialization process somehow ? (for the other missing required fields) When I mean "required" here is some deserializable type that is not an |
These serde docs may be helpful: |
💡 Feature description
Continue parsing for more missing required values (instead stopping at the first one).
😍 Motivation
This can provide more information to the user/devops/developer in order to setup all missing values at once (instead of one by one).
💻 Basic example
Today, this:
running with:
outputs this:
The desired behaviour would output this instead:
The text was updated successfully, but these errors were encountered: