diff options
author | Antoine GIRARD <sapk@users.noreply.github.com> | 2019-08-28 08:55:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-28 08:55:22 +0200 |
commit | 256b1781760beb08ae4bdde3c2750ea21c9c8fc6 (patch) | |
tree | 3ceb7ed14cdab8a1b8fbf169bebce1478af79522 /Makefile | |
parent | e0f95d1545eaf9cc4ebae9df1ff03d3e66d5b251 (diff) | |
download | gitea-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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)' |