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.

openapi: Fix inconsistencies in OpenAPI error documentation.

Lauryn Menard0acf9552650d
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index 3a2ab0c18ec..7e3906f6c41 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -6822,7 +6822,7 @@ paths:
- $ref: "#/components/schemas/SuccessDescription"
- example: {"msg": "", "result": "success"}
"400":
- description: Success.
+ description: Bad request.
content:
application/json:
schema:
@@ -8770,7 +8770,7 @@ paths:
- $ref: "#/components/schemas/SuccessDescription"
- example: {"msg": "", "result": "success"}
"400":
- description: Bad request
+ description: Bad request.
content:
application/json:
schema:
@@ -13595,7 +13595,7 @@ paths:
- $ref: "#/components/schemas/JsonSuccess"
- $ref: "#/components/schemas/SuccessDescription"
"400":
- description: Error.
+ description: Bad request.
content:
application/json:
schema:
@@ -15995,15 +15995,11 @@ components:
}
InvalidMessageError:
allOf:
- - $ref: "#/components/schemas/JsonSuccessBase"
+ - $ref: "#/components/schemas/JsonErrorBase"
- additionalProperties: false
properties:
result: {}
msg: {}
- raw_content:
- type: string
- description: |
- The raw content of the message.
example:
{
"msg": "Invalid message(s)",