Multiple uri's for a single Pointer in jsonschema_frame. #567
-
This line iterates on the nearest bases for a subschema, on multiple bases obtained from this. |
Beta Was this translation helpful? Give feedback.
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! |
Beta Was this translation helpful? Give feedback.
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…