Skip to content

"Every JSON object in an Activity Streams 2.0 document is either an Object or a Link" #706

@evanp

Description

@evanp

Section 4 says, in part:

Every JSON object in an Activity Streams 2.0 document is either an Object or a Link.

This probably isn't true. For example, this document includes an object that's a vcard:Address:

{
  "@context": "https://www.w3.org/ns/activitystreams",
  "type": "Place",
  "id": "https://places.pub/way/132605490",
  "to": "as:Public",
  "name": "DNA Lounge",
  "vcard:hasAddress": {
    "type": "vcard:Address",
    "vcard:street-address": "375 11th Street",
    "vcard:locality": "San Francisco",
    "vcard:postal-code": "94103"
  }
}

This one has an object that is a sec:Key:

{
  "@context": [
      "https://www.w3.org/ns/activitystreams",
      "https://w3id.org/security/v1"
  ],
  "type": "Person",
  "id": "https://example.com/user/aaaaa",
  "to": "as:Public",
  "name": "AAAAA",
  "publicKey": {
    "type": "CryptographicKey",
    "publicKeyPem": "<key data>"
  }
}

Is there another way to make the point in this sentence ("Object and Link are the root types in the AS2 type hierarchy") that is clearer?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Next versionThings that should probably be resolved in a next version of AS2pr-requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions