Skip to content

Commit 6bbce93

Browse files
authored
Added collections to Posts Admin API schema (#468)
Required for us to have access to the collections data in the controller
1 parent 9d10469 commit 6bbce93

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

packages/admin-api-schema/lib/schemas/posts.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@
138138
},
139139
"tags": {
140140
"$ref": "#/definitions/post-tags"
141+
},
142+
"collections": {
143+
"$ref": "#/definitions/post-collections"
141144
}
142145
}
143146
},
@@ -242,6 +245,28 @@
242245
}
243246
]
244247
}
248+
},
249+
"post-collections": {
250+
"description": "Collections of the post",
251+
"type": "array",
252+
"items": {
253+
"anyOf": [
254+
{
255+
"type": "object",
256+
"properties": {
257+
"id": {
258+
"type": "string",
259+
"maxLength": 24
260+
}
261+
},
262+
"required": ["id"]
263+
},
264+
{
265+
"type": "string",
266+
"maxLength": 24
267+
}
268+
]
269+
}
245270
}
246271
}
247272
}

0 commit comments

Comments
 (0)