Skip to content

Does $anchor creates new scope for JSON Pointer references? #258

Answered by handrews
flaksp asked this question in Q&A
Discussion options

You must be logged in to vote

It references https://example.com/BlogPost. The base URI is set by $id and is https://example.com/BlogPost so the "$ref": "#" resolves to "$ref": "https://example.com/BlogPost#". $anchor does not change the base URI at all, because base URIs are absolute-URIs (with a scheme and without a fragment).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by flaksp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants