Skip to content

Fix $ref resolution in schemas with root $id#377

Open
holodorum wants to merge 1 commit intokson-org:mainfrom
holodorum:fix-ref-id
Open

Fix $ref resolution in schemas with root $id#377
holodorum wants to merge 1 commit intokson-org:mainfrom
holodorum:fix-ref-id

Conversation

@holodorum
Copy link
Copy Markdown
Collaborator

navigateByDocumentPointer always started with baseUri="" but schemas with $id store their root under that id in the lookup map. $ref resolution then failed because idMap[""] didn't exist. Use the root schema's $id as the starting base URI so refs resolve correctly.

navigateByDocumentPointer always started with baseUri="" but schemas
with $id store their root under that id in the lookup map. $ref
resolution then failed because idMap[""] didn't exist. Use the root
schema's $id as the starting base URI so refs resolve correctly.
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