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