ActivityPub Unofficial JSON Schema

Added on Nov. 6, 2025Managed by lisa

Block

{
  "$id": "http://www.w3.org/ns/activitystreams/Block.json",
  "title": "Block",
  "description": "Indicates that the actor is blocking the object. Blocking is a stronger form of Ignore.",
  "$comment": "https://www.w3.org/TR/activitystreams-vocabulary/#dfn-block",
  "allOf": [ { "$ref": "Activity.json#" } ],

  "definitions": {
    "possibleType": {
      "enum": [
        "Block",
        "http://www.w3.org/ns/activitystreams#Block",
        "https://www.w3.org/ns/activitystreams#Block"
      ]
    },
    "byTypeRef": {
      "properties": {
        "type": {
          "oneOf": [
            { "$ref": "#/definitions/possibleType" },
            { "type": "array", "contains": { "$ref": "#/definitions/possibleType" } }
          ]
        }
      }
    },
    "possibleRef": {
			"oneOf": [
				{ "$ref": "#" },
        { "$ref": "Link.json#" },
				{
					"type": "string",
					"format": "uri",
					"links": [{
						"rel": "full",
						"href": "{+$}"
					}]
				}
			]
		},
    "possibleRefArray": {
      "oneOf": [
        { "$ref": "#/definitions/possibleRef" },
        {
          "type": "array",
          "items": { "$ref": "#/definitions/possibleRef" }
        }
      ]
    }
  }
}

View source