From 2fe2e176082c3ecc4fe8eb162981695470c38966 Mon Sep 17 00:00:00 2001 From: "Fabien \"egg\" O'Carroll" Date: Mon, 12 Jun 2023 13:30:19 +0200 Subject: [PATCH] Added `collections` to Posts Admin API schema Required for us to have access to the collections data in the controller --- .../admin-api-schema/lib/schemas/posts.json | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/packages/admin-api-schema/lib/schemas/posts.json b/packages/admin-api-schema/lib/schemas/posts.json index f29b863a6..aa46b7115 100644 --- a/packages/admin-api-schema/lib/schemas/posts.json +++ b/packages/admin-api-schema/lib/schemas/posts.json @@ -138,6 +138,9 @@ }, "tags": { "$ref": "#/definitions/post-tags" + }, + "collections": { + "$ref": "#/definitions/post-collections" } } }, @@ -242,6 +245,28 @@ } ] } + }, + "post-collections": { + "description": "Collections of the post", + "type": "array", + "items": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "maxLength": 24 + } + }, + "required": ["id"] + }, + { + "type": "string", + "maxLength": 24 + } + ] + } } } }