Skip to content

Stop config validation after the first error#3437

Merged
oprypin merged 1 commit into
masterfrom
stopconf
Oct 25, 2023
Merged

Stop config validation after the first error#3437
oprypin merged 1 commit into
masterfrom
stopconf

Conversation

@oprypin

@oprypin oprypin commented Oct 21, 2023

Copy link
Copy Markdown

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.

@ultrabug ultrabug left a comment

Copy link
Copy Markdown
Member

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

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.

2 participants