From cda611a3fe32cc05cd005fda71d728ab1631c847 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 14 Feb 2025 14:43:00 +0000 Subject: [PATCH] Sync webhook schemas from private repo --- webhook_schemas/branch.json | 13 +++++++ webhook_schemas/project.json | 36 +++++++++++++++++++ webhook_schemas/release.json | 69 ++++++++++++++++++++++++++++++++++++ webhook_schemas/test.json | 13 +++++++ webhook_schemas/user.json | 31 ++++++++++++++++ 5 files changed, 162 insertions(+) create mode 100644 webhook_schemas/branch.json create mode 100644 webhook_schemas/project.json create mode 100644 webhook_schemas/release.json create mode 100644 webhook_schemas/test.json create mode 100644 webhook_schemas/user.json diff --git a/webhook_schemas/branch.json b/webhook_schemas/branch.json new file mode 100644 index 000000000..7afdac1a2 --- /dev/null +++ b/webhook_schemas/branch.json @@ -0,0 +1,13 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "$id": "branch", + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "required": [ + "name" + ] +} \ No newline at end of file diff --git a/webhook_schemas/project.json b/webhook_schemas/project.json new file mode 100644 index 000000000..2564b741b --- /dev/null +++ b/webhook_schemas/project.json @@ -0,0 +1,36 @@ + + +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "$id": "project", + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "main_format": { + "type": [ + "string", + "null" + ] + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "id", + "name", + "main_format", + "created_at", + "updated_at" + ] +} \ No newline at end of file diff --git a/webhook_schemas/release.json b/webhook_schemas/release.json new file mode 100644 index 000000000..3b2b69293 --- /dev/null +++ b/webhook_schemas/release.json @@ -0,0 +1,69 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "$id": "release", + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "version": { + "type": "integer" + }, + "app_min_version": { + "type": "string" + }, + "app_max_version": { + "type": "string" + }, + "description": { + "type": [ + "string", + "null" + ] + }, + "platforms": { + "type": "array", + "items": { + "type": "string" + } + }, + "environments": { + "type": "array", + "items": { + "type": "string" + } + }, + "locale_codes": { + "type": "array", + "items": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "id", + "version", + "app_min_version", + "app_max_version", + "platforms", + "environments", + "locale_codes", + "tags", + "created_at", + "updated_at" + ] +} \ No newline at end of file diff --git a/webhook_schemas/test.json b/webhook_schemas/test.json new file mode 100644 index 000000000..808f72f4c --- /dev/null +++ b/webhook_schemas/test.json @@ -0,0 +1,13 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "$id": "test", + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "required": [ + "name" + ] +} \ No newline at end of file diff --git a/webhook_schemas/user.json b/webhook_schemas/user.json new file mode 100644 index 000000000..9ff883f45 --- /dev/null +++ b/webhook_schemas/user.json @@ -0,0 +1,31 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "$id": "user", + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "name": { + "type": [ + "string", + "null" + ] + }, + "gravatar_uid": { + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "id", + "username", + "name", + "gravatar_uid" + ] +}