From 6a9b87166ddb569fcacd6e3d5bba35aca86b2c64 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Sat, 23 Sep 2017 02:18:13 +0200 Subject: [PATCH] Update JSON schemas for github-pages --- docs/schemas/federation_entities.json | 38 +++++++++++++-------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/docs/schemas/federation_entities.json b/docs/schemas/federation_entities.json index b9a8012..b30af83 100644 --- a/docs/schemas/federation_entities.json +++ b/docs/schemas/federation_entities.json @@ -215,28 +215,26 @@ }, "reshare": { - "allOf": [ - {"$ref": "#/definitions/post"}, - { + "type": "object", + "properties": { + "entity_type": { + "type": "string", + "pattern": "^reshare$" + }, + + "entity_data": { "type": "object", "properties": { - "entity_type": { - "type": "string", - "pattern": "^reshare$" - }, - - "entity_data": { - "type": "object", - "properties": { - "root_author": {"type": "string"}, - "root_guid": {"$ref": "#/definitions/guid"} - }, - - "required": ["root_author", "root_guid"] - } - } - } - ] + "author": { "type": "string" }, + "guid": { "$ref": "#/definitions/guid" }, + "created_at": { "type": "string" }, + "root_author": {"type": "string"}, + "root_guid": {"$ref": "#/definitions/guid"} + }, + "required": ["author", "guid", "created_at", "root_author", "root_guid"] + }, + "required": ["entity_type", "entity_data"] + } }, "profile": {