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.

apidocs: Move stray display settings description to OpenAPI.

Suyash Vardhan Mathur987b7206aa33
diff --git a/templates/zerver/api/update-display-settings.md b/templates/zerver/api/update-display-settings.md
index e9b2e22bc42..1293a207984 100644
--- a/templates/zerver/api/update-display-settings.md
+++ b/templates/zerver/api/update-display-settings.md
@@ -25,13 +25,6 @@
## Response
-#### Return values
-
-The server will return the settings that have been changed after the request,
-with their new value. Please note that this doesn't necessarily mean that it
-will return all the settings passed as parameters in the request, but only
-those ones that were different from the already existing setting.
-
{generate_response_description(/settings/display:patch)}
#### Example response
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index 498df29e7eb..8bd3b970656 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -10096,6 +10096,13 @@ paths:
enum:
- left_side_userlist
- emojiset
+ x-response-description: |
+ #### Return values
+
+ The server will return the settings that have been changed after the request,
+ with their new value. Please note that this doesn't necessarily mean that it
+ will return all the settings passed as parameters in the request, but only
+ those ones that were different from the already existing setting.
parameters:
- name: twenty_four_hour_time
in: query