Multiple uri's for a single Pointer in jsonschema_frame. #567
Answered
by
jviotti
suprith-hub
asked this question in
Q&A
|
This line iterates on the nearest bases for a subschema, on multiple bases obtained from this. |
Answered by
jviotti
Apr 23, 2024
Replies: 1 comment 4 replies
|
A single location can be identified using multiple URIs. For example, if you have a schema resource that has its own In summary, there is no requirement for a schema location to be identified by a single URI. In many cases, there will be multiple URIs to a single schema location! |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The base URIs could indeed contain fragments. It depends on the schema. Its just the URI (or URIs) that we resolve potentially relative URIs against in any given context.
In any case, framing is tricky scary code 😅 If you have a specific schema you are studying, I'd recommend going through the framing code using a step debugger like LLDB so you see each intermediate calculation. If you are on Windows, opening JSON Toolkit on Visual Studio Community (not Visual Studio Code) would be a good way of using its debugger: https://learn.microsoft.com/en-us/visualstudio/debugger/debugger-feature-tour?view=vs-2022
I don't remember from the top of my head (I'm an Apple guy :) ), but I think Visual S…