Skip to content

Fix dereference and bundle issues (#338, #370, #395)#409

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

Fix dereference and bundle issues (#338, #370, #395)#409
jonluca merged 1 commit intomainfrom
jonluca/fix-github-issues

Conversation

@jonluca
Copy link
Member

@jonluca jonluca commented Feb 28, 2026

Summary

Fixes three important issues in the dereference and bundle operations:

Testing

All fixes include comprehensive test coverage and pass the full test suite (298 tests, 56 test files, zero regressions).

- Fix #370: Reset false circular detection for extended $refs during pointer token walking to handle Pydantic-style schemas with $ref alongside $defs
- Fix #338: Add post-processing in bundle() to correct $ref paths that incorrectly traverse through other $ref nodes
- Fix #395: Add maxDepth option to dereference (default 500) to prevent stack overflow on deeply nested schemas
- All fixes include comprehensive tests and pass full test suite (298 tests)
@jonluca jonluca merged commit cd9737c into main Feb 28, 2026
13 checks passed
@jonluca jonluca deleted the jonluca/fix-github-issues branch February 28, 2026 18:32
@coveralls
Copy link

Pull Request Test Coverage Report for Build 22526506716

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 45 of 49 (91.84%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 86.708%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/bundle.ts 38 42 90.48%
Totals Coverage Status
Change from base Build 21308984030: 0.3%
Covered Lines: 1000
Relevant Lines: 1119

💛 - 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.

2 participants