Skip to content

SubConfig: allow to actually validate the nested configs#2807

Merged
oprypin merged 7 commits into
mkdocs:masterfrom
smarie:feature/2709_subconfig_fix
Aug 17, 2022
Merged

SubConfig: allow to actually validate the nested configs#2807
oprypin merged 7 commits into
mkdocs:masterfrom
smarie:feature/2709_subconfig_fix

Conversation

@smarie

@smarie smarie commented Mar 27, 2022

Copy link
Copy Markdown
Contributor

Fixes #2709

This is a fix for previous PR (reverted) #2710

SubConfig now has an optional constructor argument named ignore_validation. By default it is True to preserve retrocompatibility with legacy. Setting it to False will now correctly collect and raise validation errors and warnings for subconfig items.

@smarie smarie changed the title Feature/2709 subconfig fix SubConfig : new ignore_validation constructor parameter. Mar 27, 2022
@smarie

smarie commented Mar 28, 2022

Copy link
Copy Markdown
Contributor Author

Note that another way to fix this would be to make subconfig strict by default, but toggle the "non-strict" flag in the default config schema for the "extra" option. As you prefer, just let me know

@oprypin

This comment was marked as abuse.

@smarie smarie deleted the feature/2709_subconfig_fix branch September 3, 2022 12:56
@smarie

smarie commented Sep 3, 2022

Copy link
Copy Markdown
Contributor Author

Thanks @oprypin !

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.

SubConfig ignore configuration failures

2 participants