Skip to content

Will JSON-LD processors silently ignore undefined properties? #778

Description

@evanp

In section 5 "extensibility" we say:

It is important to note that the JSON-LD Processing Algorithms [ JSON-LD-API], as currently defined, will silently ignore any property not defined in a JSON-LD @context.

I don't think this is true. Because of the @vocab statement in the AS2 context, I think they end up in the "_" namespace.

For example:

{
  "@context": "https://www.w3.org/ns/activitystreams",
  "id": "https://as2.example/1",
  "foo": "bar"
}

is compacted to:

{
  "@id": "https://as2.example/1",
  "_:foo": "bar"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Next versionThings that should probably be resolved in a next version of AS2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions