Closed ndr-brt closed 10 months ago
The expansion seems to be buggy on version 8.2.0. If a @id value contains a ':' and it starts with a number it gets expanded in the wrong way
@id
From the node repl:
> const jsonld = require('jsonld'); > jsonld.expand({'@id': 'a3:42', '@type': 'Any'}).then(result => console.log(result)) > [ { '@id': 'a3:42', '@type': [ 'Any' ] } ] // CORRECT > jsonld.expand({'@id': '3:42', '@type': 'Any'}).then(result => console.log(result)) > [ { '@id': '42', '@type': [ 'Any' ] } ] // WRONG
Thanks. Addressed in https://github.com/digitalbazaar/jsonld.js/pull/533.
The expansion seems to be buggy on version 8.2.0. If a
@id
value contains a ':' and it starts with a number it gets expanded in the wrong wayHow to replicate
From the node repl: