Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The playground silently ignores bugged contexts #842

Open
Labels
@pchampin

Description

An easy mistake for context publisher is to forget to wrap their context in { "@context": ... }.
See for example https://openprovenance.org/prov-jsonld/2020-03-23/context.json
(yes, this context has other issue, but that's not relevant to my point here).

Unfortunately, the JSON-LD Playground does not report any error when asked to use that context. It just silently ignores it.

I guess the rationale was that the absence of @context was equivalent to an empty @context, but I would argue that the absence of @context in a resource that is explicitly used as a context is very likely to be an error instead, and should be reported.

By the way, that's other JSON-LD implementations (@gkellogg's or @timothee-haudebourg's) do.

Example in the playground where the invalid context is silently ignored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /