Skip to content

fix: resolve open issues #349, #355, #392 with regression tests#415

Merged
jonluca merged 1 commit intomainfrom
jonluca/fix-open-issues
Feb 28, 2026
Merged

fix: resolve open issues #349, #355, #392 with regression tests#415
jonluca merged 1 commit intomainfrom
jonluca/fix-open-issues

Conversation

@jonluca
Copy link
Member

@jonluca jonluca commented Feb 28, 2026

Summary

Test plan

  • All 419 existing + new tests pass (yarn test)
  • TypeScript type checking passes (yarn typecheck)
  • No new lint errors (yarn lint)
  • Rebased on latest main

…on tests

- Add `dereference.cloneReferences` option to create independent copies
  of dereferenced values via structuredClone, preventing shared-reference
  mutations (#349)
- Fix bundle creating invalid cross-$id $ref pointers by qualifying refs
  with the root document's $id when inside a sub-schema $id scope (#355)
- Add `bundle.optimizeInternalRefs` option to control whether internal
  $ref paths get shortened during bundling (#392)
- Add regression tests for #384 (externalReferenceResolution) and #403
  (circular $ref: "#" in oneOf)
@jonluca jonluca merged commit 6e19cd9 into main Feb 28, 2026
13 checks passed
@jonluca jonluca deleted the jonluca/fix-open-issues branch February 28, 2026 19:10
@github-actions
Copy link

Pull Request Test Coverage Report for Build 22527114945

Details

  • 25 of 26 (96.15%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 87.04%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/bundle.ts 21 22 95.45%
Totals Coverage Status
Change from base Build 22527099997: 0.1%
Covered Lines: 1020
Relevant Lines: 1138

💛 - Coveralls

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