You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bundle() leaves a $ref back to the root file as a relative file ref (regression in 15.5.1) #434
Since 15.5.1, bundle() no longer rewrites a $ref inside an inlined external file that points back into the root document, so the "bundled" output still contains ../openapi.yaml#/.... 15.5.0 rewrote it to #/....
15.5.0 and earlier (expected; the docs say the result "only has internal $ref pointers"):
{"$ref":"#/components/schemas/Error"}
Tested 15.5.0 and 16.0.5 on Node.js v26.13.0; main (520f3cb) has no lib/ changes since v16.0.5. It needs a whole-file ref (./schemas/pet.yaml, no fragment); with a fragment the inner ref is remapped correctly.
In remap() in lib/bundle.ts, the ref inside the inlined pet.yaml takes the targetResourceBase !== locationResourceBase branch added in e8190c1 and goes through referenceToResource(), although pet.yaml was inlined and is not a separate $id resource.
Activity