vector
vector copied to clipboard
Warn on unknown fields
A note for the community
Currently unknown fields are just completely ignored which might lead to client misconfiguration. Ideally we'll add #[serde(deny_unknown_fields)] in all config structs but this would likely break existing users. Before doing that we should start logging a warning to alert users that the field they're using does nothing and this will eventually stop working.
Implementation details
Possibly useful crate to implement this: https://crates.io/crates/serde-ignored-fields
Changes should be made to compiler.rs and/or to the configurable macro. Hopefully this is something that can be done without touching macro code
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Use Cases
No response
Attempted Solutions
No response
Proposal
No response
References
Related to #23145
Version
No response