-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
treefile.rs: Deny unknown fields by default
Let's not make the same mistake we did with JSON where typoing a field means it's silently ignored. This actually caught a bug in a YAML usage we had: ``` error: Failed to load YAML treefile: unknown field `install_langs`, expected one of ... `install-langs` ... ``` Yes, this is a compatibility break with the feature we just announced but...I seriously doubt anyone (that isn't known to me) has converted yet, and if they are excited enough to start using a two-week-old feature they can adjust. Closes: #1459 Approved by: jlebon
- Loading branch information
1 parent
95de58c
commit 710aae0
Showing
2 changed files
with
47 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters