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.

api-docs: Add 'code' field to InvalidApiKeyError response example.

Lauryn Menard68fcd0a29975
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index 5c11cea689d..7518ff74ef1 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -19223,8 +19223,13 @@ components:
authorized to subscribe to. Only present if `"authorization_errors_fatal": false`.
InvalidApiKeyError:
allOf:
- - $ref: "#/components/schemas/JsonError"
- - example: {"msg": "Invalid API key", "result": "error"}
+ - $ref: "#/components/schemas/CodedError"
+ - example:
+ {
+ "code": "INVALID_API_KEY",
+ "msg": "Invalid API key",
+ "result": "error",
+ }
description: |
## Invalid API key