mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
api-docs: Add 'code' field to errors for deleting only org owner.
This commit is contained in:
committed by
Tim Abbott
parent
cb921300ce
commit
3e369bcf96
@@ -8097,9 +8097,10 @@ paths:
|
||||
application/json:
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: "#/components/schemas/JsonError"
|
||||
- $ref: "#/components/schemas/CodedError"
|
||||
- example:
|
||||
{
|
||||
"code": "BAD_REQUEST",
|
||||
"msg": "Cannot deactivate the only organization owner",
|
||||
"result": "error",
|
||||
}
|
||||
@@ -10624,9 +10625,10 @@ paths:
|
||||
application/json:
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: "#/components/schemas/JsonError"
|
||||
- $ref: "#/components/schemas/CodedError"
|
||||
- example:
|
||||
{
|
||||
"code": "BAD_REQUEST",
|
||||
"msg": "Cannot deactivate the only organization owner",
|
||||
"result": "error",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user