Skip to content

Inconsistency between Syntax and API specs #375

Closed
@dlongley

Description

@dlongley

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions