Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
api-docs: Remove incorrect error response from `/api/subscribe`.
Lauryn Menardab897fa3b97d
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex e7d74a71c44..a6f7fcf0f21 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -8701,40 +8701,27 @@ paths:- example:{"already_subscribed":- {"[email protected]": ["new stream"]},+ {"[email protected]": ["new stream"]},"msg": "","result": "success",- "subscribed": {"[email protected]": ["new stream"]},+ "subscribed": {"[email protected]": ["new stream"]},}"400":description: Bad request.content:application/json:schema:- oneOf:- - allOf:- - $ref: "#/components/schemas/JsonError"- - example:- {- "msg": "Unable to access stream (private_stream).",- "result": "error",- }- description: |- A typical response for when the requesting user does not have access to- a private stream and `"authorization_errors_fatal": true`:- - allOf:- - $ref: "#/components/schemas/AddSubscriptionsResponse"- - example:- {- "already_subscribed": {},- "msg": "",- "result": "success",- "subscribed": {},- "unauthorized": ["private_stream"],- }- description: |- A typical response for when the requesting user does not have access to- a private stream and `"authorization_errors_fatal": false`:+ allOf:+ - $ref: "#/components/schemas/CodedError"+ - example:+ {+ "msg": "Unable to access stream (private_stream).",+ "result": "error",+ "code": "BAD_REQUEST",+ }+ description: |+ An example JSON response for when the requesting user does not have+ access to a private stream and `"authorization_errors_fatal": true`:patch:operationId: update-subscriptionssummary: Update subscriptions