Skip to content

Commit a45dc47

Browse files
committed
Renamed comment_bans schema to member_commenting
ref https://linear.app/ghost/issue/BER-3184 Updated the Admin API schema to use "abilities" terminology instead of "ban" terminology, aligning with the new member commenting API endpoints.
1 parent a5b249c commit a45dc47

4 files changed

Lines changed: 12 additions & 24 deletions

File tree

packages/admin-api-schema/lib/schemas/comment_bans-add.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

packages/admin-api-schema/lib/schemas/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = [
2-
'comment_bans-add',
2+
'member_commenting-disable',
33
'images-upload',
44
'media-upload',
55
'labels-add',
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "member_commenting.disable",
4+
"title": "member_commenting.disable",
5+
"description": "Schema for member_commenting.disable",
6+
"allOf": [{ "$ref": "member_commenting#/definitions/member_commenting" }]
7+
}

packages/admin-api-schema/lib/schemas/comment_bans.json renamed to packages/admin-api-schema/lib/schemas/member_commenting.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"$id": "comment_bans",
4-
"title": "comment_bans",
5-
"description": "Base comment_bans definitions",
3+
"$id": "member_commenting",
4+
"title": "member_commenting",
5+
"description": "Base member_commenting definitions",
66
"definitions": {
7-
"comment_ban": {
7+
"member_commenting": {
88
"type": "object",
99
"additionalProperties": false,
1010
"properties": {

0 commit comments

Comments
 (0)