Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
openapi: Don’t forbid result, msg with additionalProperties: false.
Anders Kaseorg834542d097c1
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex fa4d68f3eb9..c59c468c94d 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: falseproperties:+ result: {}+ msg: {}count:type: integerdescription: |@@ -4393,7 +4395,7 @@ paths:application/json:schema:allOf:- - $ref: "#/components/schemas/JsonSuccess"+ - $ref: "#/components/schemas/JsonSuccessBase"- additionalProperties: falsedescription: |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 thisstatus code. The typical JSON response in such a case is:properties:+ result: {}+ msg: {}ids:type: arraydescription: |@@ -12519,6 +12523,8 @@ paths:- $ref: "#/components/schemas/SuccessDescription"- additionalProperties: falseproperties:+ result: {}+ msg: {}subscribers:type: arrayitems: