From c538518b4ba4cbb5eb2e9e0a33f91dff94740eb1 Mon Sep 17 00:00:00 2001
From: Cappy-Bara <kacper916@gmail.com>
Date: Mon, 17 Jul 2023 03:37:56 +0200
Subject: [PATCH] fix: add parseDependency to swag (#486)

---
 Taskfile.yml                                             | 2 +-
 backend/app/api/handlers/v1/v1_ctrl_items_attachments.go | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Taskfile.yml b/Taskfile.yml
index 45a8f29..1bc16f8 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -20,7 +20,7 @@ tasks:
       - db:generate
     cmds:
       - cd backend/app/api/static && swag fmt --dir=../
-      - cd backend/app/api/static && swag init --dir=../,../../../internal,../../../pkgs
+      - cd backend/app/api/static && swag init --dir=../,../../../internal,../../../pkgs --parseDependency
       - |
         npx swagger-typescript-api \
           --no-client \
diff --git a/backend/app/api/handlers/v1/v1_ctrl_items_attachments.go b/backend/app/api/handlers/v1/v1_ctrl_items_attachments.go
index 8da8eb4..eefc28e 100644
--- a/backend/app/api/handlers/v1/v1_ctrl_items_attachments.go
+++ b/backend/app/api/handlers/v1/v1_ctrl_items_attachments.go
@@ -29,7 +29,7 @@ type (
 //	@Param    type formData string true "Type of file"
 //	@Param    name formData string true "name of the file including extension"
 //	@Success  200  {object} repo.ItemOut
-//	@Failure  422  {object} mid.ErrorResponse
+//	@Failure  422  {object} validate.ErrorResponse
 //	@Router   /v1/items/{id}/attachments [POST]
 //	@Security Bearer
 func (ctrl *V1Controller) HandleItemAttachmentCreate() errchain.HandlerFunc {