Necessary Properties
With this support table, we want to illustrate, which properties can be removed from an object, and still create an appropriate response. We note that the basic form of an object is
{
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"as:Public",
"http://mitra/users/admin"
],
"id": "http://pasture-one-actor/actor/wFuWTn-8BiE",
"published": "2023-11-28T11:38:15Z",
"content": "All fields"
}
Objects
Object 1
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attributedTo": "http://actor.example",
"content": "All fields",
"id": "http://actor.example/gJhEPEzRYTs",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 2
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attributedTo": "http://actor.example",
"content": "without id",
"id": null,
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 3
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attributedTo": "http://actor.example",
"content": "without published",
"id": "http://actor.example/6PrS-6mPvI8",
"published": null,
"to": [
"as:Public"
],
"type": "Note"
}
Object 4
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attributedTo": null,
"content": "without attributedTo",
"id": "http://actor.example/epZyu77CxG4",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 5
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attributedTo": "http://actor.example",
"content": "without type",
"id": "http://actor.example/7K2fN-IqSAw",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public"
],
"type": null
}
Activities
Activity 1
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/dRWWhhhcNvk",
"object": {
"attributedTo": "http://actor.example",
"content": "All fields",
"id": "http://actor.example/gp0M9a8UVu8",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Create"
}
Activity 2
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/6iOn7k7wQg4",
"object": {
"attributedTo": "http://actor.example",
"content": "without id",
"id": null,
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Create"
}
Activity 3
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/sd4UypT8_Uk",
"object": {
"attributedTo": "http://actor.example",
"content": "without published",
"id": "http://actor.example/3Db-zy90La8",
"published": null,
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Create"
}
Activity 4
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/F_QxMTWxGFE",
"object": {
"attributedTo": null,
"content": "without attributedTo",
"id": "http://actor.example/F6hoQDDnxu8",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Create"
}
Activity 5
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/vR61F9AcYGI",
"object": {
"attributedTo": "http://actor.example",
"content": "without type",
"id": "http://actor.example/0-NJNXUejMI",
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": null
},
"published": "2024-11-22T15:02:51Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Create"
}