mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-22 08:35:43 +00:00
fix: add parseDependency to swag (#486)
This commit is contained in:
parent
f66d14eeea
commit
c538518b4b
2 changed files with 2 additions and 2 deletions
|
@ -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 \
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue