Skip to content

Fix external complex dependencies being overwritten when inlining#1

Merged
sunkan merged 2 commits intostefna:mainfrom
runar-stefna:fix-complex-external-references-overwrite
Oct 30, 2025
Merged

Fix external complex dependencies being overwritten when inlining#1
sunkan merged 2 commits intostefna:mainfrom
runar-stefna:fix-complex-external-references-overwrite

Conversation

@runar-stefna
Copy link
Contributor

If an external complex reference has more than one path, the inlined schema will effectively have all the external paths reference the same model. Adding the uri part ensures that the external models are not overwritten.

If an external complex reference has more than one path, the inlined
schema will effectively have all the external paths reference the same
model. Adding the uri part ensures that the external models are not
overwritten.
@bix0r bix0r requested a review from sunkan October 30, 2025 08:07
@bix0r
Copy link
Member

bix0r commented Oct 30, 2025

@runar-stefna LGTM. But can you add a test to show this?

Verify that when multiple paths are defined from the same external
package, the inliner does not overwrite all the path definitions with
the same model.
@sunkan sunkan merged commit dd03a5b into stefna:main Oct 30, 2025
6 of 9 checks passed
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.

3 participants