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

Stop config validation after the first error #3437

Merged
merged 1 commit into from Oct 25, 2023
Merged

Stop config validation after the first error #3437

merged 1 commit into from Oct 25, 2023

Conversation

oprypin
Copy link
Contributor

@oprypin oprypin commented Oct 21, 2023

If one config option completely fails validation, that means its value remains "raw" from YAML, which can cause unpredictable errors when validating other options that might look at the value. Instead just decide one error is enough.

If one config option completely fails validation, that means its value remains "raw" from YAML, which can cause unpredictable errors when validating other options that might look at the value. Instead just decide one error is enough.
Copy link
Member

@ultrabug ultrabug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, I like fail fast better

@oprypin oprypin merged commit b5250bf into master Oct 25, 2023
30 checks passed
@oprypin oprypin deleted the stopconf branch October 25, 2023 17:41
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.

None yet

2 participants