Skip to content

Redefining keywords in context should throw an exception #210

Closed
@dlongley

Description

@dlongley

According to #102, we decided that an attempt to redefine a keyword in the context should throw an exception. The spec text in the Context Processing Algorithm (http://json-ld.org/spec/latest/json-ld-api/#context-processing), in step 2.4.3.2, merely ignores these redefinitions.

If we should be triggering an error for this, then this expansion test also needs to be changed/removed (or made into an error unit test ... of which we don't have any yet):

https://github.com/json-ld/json-ld.org/blob/master/test-suite/tests/expand-0043-in.jsonld

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions