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: Mark subscribe error as a JsonError.

Anders Kaseorge9fd52da013b
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index 0fa4065c586..6f05b2dca77 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -6724,13 +6724,13 @@ paths:
A typical successful JSON response when the user is already subscribed to
the streams specified
"400":
- description: Success.
+ description: Bad request.
content:
application/json:
schema:
oneOf:
- allOf:
- - $ref: "#/components/schemas/AddSubscriptionsResponse"
+ - $ref: "#/components/schemas/JsonError"
- example:
{
"msg": "Unable to access stream (private_stream).",