fix: add parseDependency to swag (#486)

This commit is contained in:
Cappy-Bara 2023-07-17 03:37:56 +02:00 committed by GitHub
parent f66d14eeea
commit c538518b4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ tasks:
- db:generate - db:generate
cmds: cmds:
- cd backend/app/api/static && swag fmt --dir=../ - 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 \ npx swagger-typescript-api \
--no-client \ --no-client \

View file

@ -29,7 +29,7 @@ type (
// @Param type formData string true "Type of file" // @Param type formData string true "Type of file"
// @Param name formData string true "name of the file including extension" // @Param name formData string true "name of the file including extension"
// @Success 200 {object} repo.ItemOut // @Success 200 {object} repo.ItemOut
// @Failure 422 {object} mid.ErrorResponse // @Failure 422 {object} validate.ErrorResponse
// @Router /v1/items/{id}/attachments [POST] // @Router /v1/items/{id}/attachments [POST]
// @Security Bearer // @Security Bearer
func (ctrl *V1Controller) HandleItemAttachmentCreate() errchain.HandlerFunc { func (ctrl *V1Controller) HandleItemAttachmentCreate() errchain.HandlerFunc {