From b5b09c3cfe1fdbece70377e40b93fb5e17480a7a Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Mon, 15 Feb 2021 21:27:32 -0500 Subject: [PATCH] create common enterprise schema Taken from payload examples in #371 --- .../schemas/common/enterprise.schema.json | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 payload-schemas/schemas/common/enterprise.schema.json diff --git a/payload-schemas/schemas/common/enterprise.schema.json b/payload-schemas/schemas/common/enterprise.schema.json new file mode 100644 index 000000000..7ee97c28f --- /dev/null +++ b/payload-schemas/schemas/common/enterprise.schema.json @@ -0,0 +1,31 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "common/enterprise.schema.json", + "type": "object", + "required": [ + "id", + "slug", + "name", + "node_id", + "avatar_url", + "description", + "website_url", + "html_url", + "created_at", + "updated_at" + ], + "properties": { + "id": { "type": "integer" }, + "slug": { "type": "string" }, + "name": { "type": "string" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string", "format": "uri" }, + "description": { "type": "string" }, + "website_url": { "type": "string" }, + "html_url": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" } + }, + "additionalProperties": false, + "title": "Enterprise" +}