Skip to content

Commit

Permalink
Added collections to Posts Admin API schema (#468)
Browse files Browse the repository at this point in the history
Required for us to have access to the collections data in the controller
  • Loading branch information
allouis authored Jun 12, 2023
1 parent 9d10469 commit 6bbce93
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions packages/admin-api-schema/lib/schemas/posts.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@
},
"tags": {
"$ref": "#/definitions/post-tags"
},
"collections": {
"$ref": "#/definitions/post-collections"
}
}
},
Expand Down Expand Up @@ -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
}
]
}
}
}
}

0 comments on commit 6bbce93

Please sign in to comment.