From 3c55affa6684311ca73bc4e3d3bfb17b7541f63b Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 19 Oct 2023 15:07:55 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- .../json_schemas/activity_pub_follow_payload.json | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 app/validators/json_schemas/activity_pub_follow_payload.json (limited to 'app/validators/json_schemas') 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 + } +} -- cgit v1.2.3