Closed
Description
The JSON-LD Syntax spec indicates that the values of keys in a language map may be null
. However, the Expansion Algorithm raises an error if a value is not a string (therefore not allowing null
). See:
7.5.2.2.1) item must be a string, otherwise an invalid language map value error has been detected and processing is aborted.
Similarly, the invalid language map value error definition in the API spec doesn't mention allowing null
.
@lanthaler, @gkellogg, @msporny -- thoughts on the proper resolution? Which spec do you think is incorrect?
I believe we have no tests for using null
values in a language map -- and if I modify jsonld.js
to allow null
, no other tests fail.
Related to digitalbazaar/jsonld.js#76.