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

Validate relevant schema only #13

Merged
merged 2 commits into from Dec 11, 2022
Merged

Conversation

colinodell
Copy link
Member

Fixes thephpleague/commonmark#910 by changing how we perform delayed schema validation.

Previously, we delayed validation until the user request any config value. At this time, we'd validate the entire configuration against all registered schemas. This could lead to issues if other, unrelated configs/schemas didn't have both the schema and data values registered at the time.

With this PR, we still delay validation, but that validation now only checks the relevant part of the configuration against the relevant schema.

@colinodell colinodell merged commit 7f83d8b into main Dec 11, 2022
@colinodell colinodell deleted the validate-relevant-schema-only branch December 11, 2022 20:35
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.

Config doesn't unexpectedly doesn't support option.
1 participant