Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

api-docs: Add 'code' field to errors for deleting only org owner.

Lauryn Menard3e369bcf967e
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index a55b23d04af..b54f01365b7 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -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",
}