Closed azaroth42 closed 4 years ago
Irrelevant as in no longer works? (And if so ... wouldn't that be a normative change?) Or irrelevant as in this could be a best practice, but not needed in the spec?
No, it's relevant.
It might be considered a bug, but the algorithm doesn't set the local context when processing id-map keys, it is deferred until processing values, thus your example won't work.
We could (probably should) add a step after 13.8.3.1 to set map context if @container
includes @id
; I'm not sure why we didn't do this.
This will require more tests for this.
In the mean time, I'm just going to update the example to set @base
in the top-level context.
Hmm, then I'm doubly glad I found it, as it works in the playground just fine!
(Relabeling so we know to discuss on a call)
Adding
@base
as a scoped context below an id map makes the structure much more useful:As then the URIs become relative to base, and can thus be simple keys / slugs.