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" + ] +}