Closed OR13 closed 3 months ago
Yeah, @vocab
isn't currently supported, but I expect that we'll want to figure out if we can support it in some way (i.e., either with or without compression for keys that depend on it).
Looks like we're throwing here... when we shouldn't be (when @vocab
is used): https://github.com/digitalbazaar/cborld/commit/b93b15ff9ab9abf30edeb91163f25a330384f958#diff-e4a9d890818b54410ff95248f37a9769a93e2f409ec7fb3c090c4c1db48b062eR124-R128
We should detect when @vocab
is active and NOT throw... just leave the term as-is (string).
I made an ipld middleware that will convert from a context that has a vocab to one that does not, and it works... but its pretty hacky... https://github.com/OR13/binary-linked-data/blob/main/deeply-nested-sadness.test.js
@msporny,
We should detect when @vocab is active and NOT throw... just leave the term as-is (string).
At present, all terms must be transformed to term IDs (integers), so there's no "leaving a term as-is (string)". We would have to explore whether that approach is viable.
Since 7.x all terms that do not have their own term definitions in the context will "pass through" (be left as a string), so this is now covered, closing.