rust icon indicating copy to clipboard operation
rust copied to clipboard

Target spec JSON files are not checked for unknown keys

Open phil-opp opened this issue 5 years ago • 1 comments

Target JSON files are currently not checked for unknown keys, so typos can easily lead to bugs. For example, a "panic_strategy": "abort" key is silently ignored because the correct key name is panic-strategy (- instead of _).

This is not a new problem, but I could not find any open issue for this. Feel free to close this if this is a duplicate.

phil-opp avatar Aug 24 '20 07:08 phil-opp

After #85775 it emits a warning if there is any unknown key.

xzmeng avatar Aug 25 '23 06:08 xzmeng