From 2847c53bca7c3d39b37663abe5b0bda07934ff25 Mon Sep 17 00:00:00 2001 From: dylan Date: Tue, 14 Jan 2025 12:44:06 +0100 Subject: [PATCH] Add doc for HTTP 400 on vote creation --- cmd/web/openapi.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/web/openapi.yml b/cmd/web/openapi.yml index c3b2c8f..b8b888a 100644 --- a/cmd/web/openapi.yml +++ b/cmd/web/openapi.yml @@ -79,6 +79,12 @@ paths: responses: 200: description: Votes cast + 400: + description: Request malformed + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" 404: description: Election not found content: