diff options
author | Fluf <36822577+flufmonster@users.noreply.github.com> | 2018-06-02 07:29:12 -0400 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-06-02 14:29:12 +0300 |
commit | 28fb255d91dc4fef45f96773374b73d40320b2f3 (patch) | |
tree | 50da7cc3f4b4b2b9d6b6750f9a9a506124b1f209 /Makefile | |
parent | 0549762fd00a60d0d47380d67621f7076fc25c0f (diff) | |
download | gitea-28fb255d91dc4fef45f96773374b73d40320b2f3.tar.gz gitea-28fb255d91dc4fef45f96773374b73d40320b2f3.zip |
Add make command to validate swagger file (#4096)
Partial fix for #4088
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -100,6 +100,13 @@ swagger-check: generate-swagger exit 1; \ fi; +.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; \ + fi + swagger validate ./public/swagger.v1.json + .PHONY: errcheck errcheck: @hash errcheck > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ |