diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-19 18:07:55 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-19 18:07:55 +0300 |
commit | 3c55affa6684311ca73bc4e3d3bfb17b7541f63b (patch) | |
tree | b15020de36fa6b7c0b10bce78165eea79dc1455e /app/validators/json_schemas/activity_pub_follow_payload.json | |
parent | 881435f2a3eeca1b5b544ad7c7510481b1773d1b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/validators/json_schemas/activity_pub_follow_payload.json')
-rw-r--r-- | app/validators/json_schemas/activity_pub_follow_payload.json | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/app/validators/json_schemas/activity_pub_follow_payload.json b/app/validators/json_schemas/activity_pub_follow_payload.json new file mode 100644 index 00000000000..1f453ce840f --- /dev/null +++ b/app/validators/json_schemas/activity_pub_follow_payload.json @@ -0,0 +1,53 @@ +{ + "description": "ActivityPub Follow activity payload", + "type": "object", + "required": [ + "@context", + "id", + "type", + "actor", + "object" + ], + "properties": { + "@context": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array" + } + ] + }, + "id": { + "type": "string" + }, + "type": { + "type": "string" + }, + "actor": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "object", + "required": [ + "id" + ], + "id": { + "type": "string" + }, + "inbox": { + "type": "string" + }, + "additionalProperties": true + } + ] + }, + "object": { + "type": "string" + }, + "additionalProperties": true + } +} |