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: Move stray get messages description into OpenAPI.

Suyash Vardhan Mathur3f104c378bf4
diff --git a/templates/zerver/api/get-messages.md b/templates/zerver/api/get-messages.md
index 2c166a2706e..ab9a466389f 100644
--- a/templates/zerver/api/get-messages.md
+++ b/templates/zerver/api/get-messages.md
@@ -25,10 +25,6 @@
## Response
-When a request is successful, this endpoint returns a dictionary
-containing the following (in addition to the `msg` and `result` keys
-present in all Zulip API responses).
-
{generate_return_values_table|zulip.yaml|/messages:get}
{generate_response_description(/messages:get)}
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index 13d925df50e..b40afa94909 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -4223,8 +4223,12 @@ paths:
schema:
allOf:
- $ref: "#/components/schemas/JsonSuccessBase"
- - $ref: "#/components/schemas/SuccessDescription"
- additionalProperties: false
+ description: |
+ When a request is successful, this endpoint returns a dictionary
+ containing the following (in addition to the `msg` and `result` keys
+ present in all Zulip API responses).
+ A typical successful JSON response may look like
properties:
result: {}
msg: {}