Skip to content

Conversation

@stof
Copy link
Contributor

@stof stof commented Oct 17, 2025

Closes #11

The exist code is likely already failing due to the exhaustiveness check of the match expression (unless the root name of the extension config is one of the name of know tags, which is unlikely but would totally break things due to a different structure).
This provides a better error message explaining what the problem actually is.

@GromNaN
Copy link
Owner

GromNaN commented Oct 17, 2025

Is is different from what validateNamespace does?

@stof
Copy link
Contributor Author

stof commented Oct 17, 2025

validateNamespace validates the namespace of the root element. This prevents trying to convert a routing file instead of a DI file.

Extension configs are not about dedicated files. They are about using other namespaces (the ones from each extension) as child nodes of the container (or when) node.

@GromNaN GromNaN merged commit b31e227 into GromNaN:main Oct 17, 2025
1 check passed
@GromNaN
Copy link
Owner

GromNaN commented Oct 17, 2025

Thank you @stof

@stof stof deleted the patch-2 branch December 12, 2025 09:02
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 files containing semantic configuration of other bundles must fail conversion

2 participants