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

Improve config handling of invalid conditionals #81

Merged
merged 1 commit into from Dec 6, 2020

Conversation

CrazyIvan359
Copy link
Owner

@CrazyIvan359 CrazyIvan359 commented Dec 6, 2020

Config parser now considers required sections with defaults for all options to be valid and will populate the section in the returned configuration. This solves problem 1 in #80 where the parser reports the pin configuration to be valid but does not populate the invalid section because it thinks it is optional.

This was the intended behaviour when conditions were added. They are now only considered required if a condition matches and they are marked as required.

@CrazyIvan359 CrazyIvan359 added bug Something isn't working enhancement New feature or request labels Dec 6, 2020
@CrazyIvan359 CrazyIvan359 merged commit 7c6a55d into master Dec 6, 2020
@CrazyIvan359 CrazyIvan359 deleted the config-required-sections branch December 6, 2020 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant