From 68fcd0a29975194daf80131315b095f0c19d0c4a Mon Sep 17 00:00:00 2001 From: Lauryn Menard Date: Fri, 1 Sep 2023 14:15:27 +0200 Subject: [PATCH] api-docs: Add 'code' field to InvalidApiKeyError response example. --- zerver/openapi/zulip.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml index 5c11cea689..7518ff74ef 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