From 8dddb0b94073f72ed4a3fd1c2186c556264b55c9 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Mon, 10 Nov 2025 22:45:39 +0100 Subject: [PATCH] fix api spec --- backend/src/routes/documents.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/src/routes/documents.rs b/backend/src/routes/documents.rs index 104fefa..cdd26da 100644 --- a/backend/src/routes/documents.rs +++ b/backend/src/routes/documents.rs @@ -186,7 +186,11 @@ pub async fn get_document( responses( (status = 201, description = "Document created", body = DocumentDetailResponse), (status = 200, description = "Existing document reused", body = DocumentDetailResponse), - (status = 409, description = "Document with identical contents already exists") + ( + status = 409, + description = "Document with identical contents already exists", + body = crate::error::ApiErrorResponse + ) ), tag = "Documents" )]