summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2019-08-28 08:55:22 +0200
committerGitHub <noreply@github.com>2019-08-28 08:55:22 +0200
commit256b1781760beb08ae4bdde3c2750ea21c9c8fc6 (patch)
tree3ceb7ed14cdab8a1b8fbf169bebce1478af79522 /Makefile
parente0f95d1545eaf9cc4ebae9df1ff03d3e66d5b251 (diff)
downloadgitea-256b1781760beb08ae4bdde3c2750ea21c9c8fc6.tar.gz
gitea-256b1781760beb08ae4bdde3c2750ea21c9c8fc6.zip
Update swagger to 0.20.1 (#8010)
* update swagger to 0.20.1 * fiw swagger version for validate
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index de2692d6a8..d320a70e59 100644
--- a/Makefile
+++ b/Makefile
@@ -102,7 +102,7 @@ generate:
.PHONY: generate-swagger
generate-swagger:
@hash swagger > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
- GO111MODULE="on" $(GO) get -u github.com/go-swagger/go-swagger/cmd/swagger@v0.19.0; \
+ GO111MODULE="on" $(GO) get -u github.com/go-swagger/go-swagger/cmd/swagger@v0.20.1; \
fi
swagger generate spec -o './$(SWAGGER_SPEC)'
$(SED_INPLACE) '$(SWAGGER_SPEC_S_TMPL)' './$(SWAGGER_SPEC)'
@@ -120,7 +120,7 @@ swagger-check: generate-swagger
.PHONY: swagger-validate
swagger-validate:
@hash swagger > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
- $(GO) get -u github.com/go-swagger/go-swagger/cmd/swagger; \
+ GO111MODULE="on" $(GO) get -u github.com/go-swagger/go-swagger/cmd/swagger@v0.20.1; \
fi
$(SED_INPLACE) '$(SWAGGER_SPEC_S_JSON)' './$(SWAGGER_SPEC)'
swagger validate './$(SWAGGER_SPEC)'