Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

fix: add parseDependency to swag (#486)

Cappy-Barac538518b4ba4
diff --git a/Taskfile.yml b/Taskfile.yml
index 45a8f29c..1bc16f8a 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 8da8eb45..eefc28ed 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 {