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 update-notification-settings description into OpenAPI.

Suyash Vardhan Mathur7f8d8e0a9ca5
diff --git a/templates/zerver/api/update-notification-settings.md b/templates/zerver/api/update-notification-settings.md
index f77f2107f67..65a68c59aba 100644
--- a/templates/zerver/api/update-notification-settings.md
+++ b/templates/zerver/api/update-notification-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 than the already existing setting.
-
{generate_response_description(/settings/notifications:patch)}
#### Example response
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index 64510e8341d..fb3f454f820 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -10044,6 +10044,11 @@ paths:
schema:
type: boolean
example: true
+ x-response-description: |
+ 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 than the already existing setting.
responses:
"200":
description: Success.