Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add strict parsing option #19

Merged
merged 1 commit into from
Mar 25, 2023
Merged

Add strict parsing option #19

merged 1 commit into from
Mar 25, 2023

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