Skip to content

feat(bundler): classify ambiguous refs by source slot during composition#573

Merged
daveshanley merged 3 commits into
mainfrom
object-detection
May 22, 2026
Merged

feat(bundler): classify ambiguous refs by source slot during composition#573
daveshanley merged 3 commits into
mainfrom
object-detection

Conversation

@daveshanley
Copy link
Copy Markdown
Member

Track the OpenAPI path of every $ref through the index as Reference.SourcePath, then use it in the composed bundler to infer a component bucket when the target node's shape is ambiguous (sparse responses, description-only objects, bare-file refs). Refs that previously fell back to inlining can now be lifted into the correct components slot, with contextual map keys preventing collisions when the same target is referenced from different slots.

Track the OpenAPI path of every $ref through the index as `Reference.SourcePath`, then use it in the composed bundler to infer a component bucket when the target node's shape is ambiguous (sparse responses, description-only objects, bare-file refs). Refs that previously fell back to inlining can now be lifted into the correct `components` slot, with contextual map keys preventing collisions when the same target is referenced from different slots.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.69%. Comparing base (313d137) to head (04d3abc).

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #573    +/-   ##
========================================
  Coverage   99.69%   99.69%            
========================================
  Files         263      264     +1     
  Lines       30355    30562   +207     
========================================
+ Hits        30263    30470   +207     
  Misses         55       55            
  Partials       37       37            
Flag Coverage Δ
unittests 99.69% <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 Sentry.
📢 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.

@daveshanley daveshanley merged commit 73c24d6 into main May 22, 2026
7 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.

1 participant