From 834542d097c19602a61e4d8b08dd5d945aa0423f Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 11 Jan 2022 19:57:38 -0800 Subject: [PATCH] =?UTF-8?q?openapi:=20Don=E2=80=99t=20forbid=20result,=20m?= =?UTF-8?q?sg=20with=20additionalProperties:=20false.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Anders Kaseorg --- zerver/openapi/zulip.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml index fa4d68f3eb..c59c468c94 100644 --- a/zerver/openapi/zulip.yaml +++ b/zerver/openapi/zulip.yaml @@ -4306,10 +4306,12 @@ paths: application/json: schema: allOf: - - $ref: "#/components/schemas/JsonSuccess" + - $ref: "#/components/schemas/JsonSuccessBase" - $ref: "#/components/schemas/SuccessDescription" - additionalProperties: false properties: + result: {} + msg: {} count: type: integer description: | @@ -4393,7 +4395,7 @@ paths: application/json: schema: allOf: - - $ref: "#/components/schemas/JsonSuccess" + - $ref: "#/components/schemas/JsonSuccessBase" - additionalProperties: false description: | When all of the drafts in the request are valid, this endpoint will return @@ -4402,6 +4404,8 @@ paths: step, then none of the drafts will be created and we would not get this status code. The typical JSON response in such a case is: properties: + result: {} + msg: {} ids: type: array description: | @@ -12519,6 +12523,8 @@ paths: - $ref: "#/components/schemas/SuccessDescription" - additionalProperties: false properties: + result: {} + msg: {} subscribers: type: array items: