-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(uair): warn on unknown config values (#25)
* feat: add deny_unknown_fields to deserializable structs This prevents configs with unknown fields from deserializing, letting the user know immediately that the field is invalid. Closes #22 * chore: add serde_ignored to dependencies * chore(uair): remove '#[serde(deny_unknown_fields)]' * feat(uair): warn on unknown config values * refactor: move logger initialization to main This allows for mock logger setup in tests * test: assert warning is printed on unknown config fields * chore: update CHANGELOG * chore: remove commented code --------- Co-authored-by: Rishabh Das <[email protected]>
- Loading branch information
Showing
6 changed files
with
104 additions
and
30 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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