Open g-yonchev opened 4 years ago
Hello!
It seems that when I do
const compacted = { '@context': 'https://schema.org/', '@type': 'Organization', sameAs: [ '@test' ] }; const expanded = await jsonld.expand(compacted);
getting the output
console.log(JSON.stringify(expanded, null, 2)); /* Output: [{ "@type": ["http://schema.org/Organization"], "http://schema.org/sameAs": [{"@id": null}] }] */
I would expect that the @id should not be null It seems like if the value starts with @ it is ignored https://github.com/digitalbazaar/jsonld.js/blob/983cd849f56180e2ee4552ca25dd52b293174830/lib/context.js#L986
@id
null
@
Is this expected behaviour or a bug?
Hello!
It seems that when I do
getting the output
I would expect that the
@id
should not benull
It seems like if the value starts with@
it is ignored https://github.com/digitalbazaar/jsonld.js/blob/983cd849f56180e2ee4552ca25dd52b293174830/lib/context.js#L986Is this expected behaviour or a bug?