Skip to content

fix: rewrite composed refs inside extensions#602

Open
matoous wants to merge 1 commit into
pb33f:mainfrom
matoous:md/fix-refs-in-extensions
Open

fix: rewrite composed refs inside extensions#602
matoous wants to merge 1 commit into
pb33f:mainfrom
matoous:md/fix-refs-in-extensions

Conversation

@matoous

@matoous matoous commented Jul 6, 2026

Copy link
Copy Markdown

Composed bundles could leave root-level vendor extension $refs pointing at external files even when the referenced component had been composed into the bundle. Such refs made the bundled document not self-contained.

Allow the final composed-ref rewrite pass to also process $ref values under x-* extension fields, and add a regression test.

Spotted on our side once we upgraded to the latest vacuum version. In our case, we use extensions similarly to the included regression tests which stopped being properly composed.

Related: 8585a05

Composed bundles could leave root-level vendor extension `$refs` pointing at
external files even when the referenced component had been composed into the
bundle. Such refs made the bundled document not self-contained.

Allow the final composed-ref rewrite pass to also process `$ref` values under
`x-*` extension fields, and add a regression test.

Spotted on our side once we upgraded to the latest vacuum version.
In our case, we use extensions similarly to the included regression
tests which stopped being properly composed.

Related: pb33f@8585a05
@codecov

codecov Bot commented Jul 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.75%. Comparing base (d4c45ce) to head (723311e).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #602   +/-   ##
=======================================
  Coverage   99.75%   99.75%           
=======================================
  Files         281      281           
  Lines       34061    34096   +35     
=======================================
+ Hits        33977    34012   +35     
  Misses         51       51           
  Partials       33       33           
Flag Coverage Δ
unittests 99.75% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant