Browse Source

Add make command to validate swagger file (#4096)

Partial fix for #4088
for-closed-social
Fluf 6 years ago
committed by Lauris BH
parent
commit
28fb255d91
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      Makefile

+ 7
- 0
Makefile View File

@ -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 \

Loading…
Cancel
Save