Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
api-docs: Update drafts/scheduled message ResourceNotFoundErrors.
Lauryn Menard767c6a506c0e
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex 862194ff047..4b91749ce54 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -5206,10 +5206,16 @@ paths:application/json:schema:allOf:- - $ref: "#/components/schemas/JsonError"+ - $ref: "#/components/schemas/CodedError"- description: |- JSON response for when no draft exists with the provided ID.- example: {"result": "error", "msg": "Draft does not exist"}+ A typical failed JSON response for when no draft exists with+ the provided ID:+ example:+ {+ "code": "BAD_REQUEST",+ "result": "error",+ "msg": "Draft does not exist",+ }delete:operationId: delete-drafttags: ["drafts"]@@ -5235,10 +5241,16 @@ paths:application/json:schema:allOf:- - $ref: "#/components/schemas/JsonError"+ - $ref: "#/components/schemas/CodedError"- description: |- JSON response for when no draft exists with the provided ID.- example: {"result": "error", "msg": "Draft does not exist"}+ A typical failed JSON response for when no draft exists with+ the provided ID:+ example:+ {+ "code": "BAD_REQUEST",+ "result": "error",+ "msg": "Draft does not exist",+ }/scheduled_messages:get:operationId: get-scheduled-messages@@ -5542,16 +5554,22 @@ paths:description: |A typical failed JSON response for when a direct message is scheduledto be sent to a user that does not exist:- - allOf:- - $ref: "#/components/schemas/JsonError"- - description: |- Example response for when no scheduled message exists with the provided ID.- example:- {- "code": "BAD_REQUEST",- "result": "error",- "msg": "Scheduled message does not exist",- }+ "404":+ description: Not Found.+ content:+ application/json:+ schema:+ allOf:+ - $ref: "#/components/schemas/CodedError"+ - description: |+ A typical failed JSON response for when no scheduled message exists+ with the provided ID:+ example:+ {+ "code": "BAD_REQUEST",+ "result": "error",+ "msg": "Scheduled message does not exist",+ }delete:operationId: delete-scheduled-messagetags: ["scheduled_messages"]@@ -5582,9 +5600,10 @@ paths:application/json:schema:allOf:- - $ref: "#/components/schemas/JsonError"+ - $ref: "#/components/schemas/CodedError"- description: |- Example response for when no scheduled message exists with the provided ID.+ A typical failed JSON response for when no scheduled message exists+ with the provided ID:example:{"code": "BAD_REQUEST",