digitalbazaar / jsonld.js

A JSON-LD Processor and API implementation in JavaScript
https://json-ld.org/
Other
1.64k stars 195 forks source link

Fix `@graph` `@container` term `@context` handling. #544

Closed davidlehn closed 7 months ago

davidlehn commented 7 months ago

When a term scoped context is nullified, it also nullifies the container information. This fix gets the @container value from the active context. In particular, this is needed for proper @graph container handling.

It is a bit difficult to reason about the correctness of this fix. All test suite tests including the additional one related to this issue pass. But more esoteric untested JSON-LD structures may not?

https://github.com/w3c/json-ld-api/pull/582 https://github.com/w3c/vc-data-model/issues/1373