Skip to content

fix: resolve $ref with sibling keywords against correct file URI#41

Merged
ivangsa merged 3 commits into
mainfrom
develop
Mar 18, 2026
Merged

fix: resolve $ref with sibling keywords against correct file URI#41
ivangsa merged 3 commits into
mainfrom
develop

Conversation

@ivangsa
Copy link
Copy Markdown
Member

@ivangsa ivangsa commented Mar 18, 2026

No description provided.

TheRealGuru and others added 3 commits March 17, 2026 21:57
mergeResolvedAndReplaceOriginal was resolving relative $ref paths
against this.uri (root spec URI) instead of currentFileURL (the file
containing the $ref). This caused ArrayIndexOutOfBoundsException when
the relative path overshot the root directory depth, and silent wrong
resolution otherwise.

Pass currentFileURL through replaceWith$Ref into
mergeResolvedAndReplaceOriginal so $Ref.of() resolves against the
correct base URI.

closes #38
fix: resolve $ref with sibling keywords against correct file URI
@ivangsa ivangsa merged commit 4197d69 into main Mar 18, 2026
1 check 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.

2 participants