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
Warn about unknown fields when deserialising JSON files #6436
Comments
If I understand correctly we may try to use that crate?: |
Yes, looks exactly like what we want. |
If so, am I right that we can do that in the following way:
|
That looks reasonable. The exact formatting for the debug message would need some work of course and maybe even have the function return |
Thanks for the comments. |
Currently, if serde encounters an unknown field it silently ignores it. We might want to at least warn if this happens. I’ve just spent noticeable amount of time debugging an issue caused by a typo in
config.json
file.The text was updated successfully, but these errors were encountered: