Skip to content

Conversation

arieltorti
Copy link
Contributor

It's useful to fail when extra keys are present in the config file. Strict parsing is akin to json.DisallowUnknownFields and yaml.UnmarshalStrict and returns an error upon encountering an unknown field.

Fixes: #18

It's useful to fail when extra keys are present in the
config file. Strict parsing is akin to json.DisallowUnknownFields
and yaml.UnmarshalStrict and returns an error upon encountering
an unknown field.
@kkyr
Copy link
Owner

kkyr commented Mar 25, 2023

Apologies for looking at this late. LGTM and thanks for contributing!

@kkyr kkyr merged commit b6a316a into kkyr:master Mar 25, 2023
@arieltorti
Copy link
Contributor Author

@kkyr could a new version with these changes?

@kkyr
Copy link
Owner

kkyr commented Jul 26, 2023

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a strict parsing alternative which disallows unknown fields
2 participants