Add debug output for swagger validate

This commit is contained in:
Jannis Mattheis 2018-02-20 19:06:44 +01:00 committed by Jannis Mattheis
parent 2fc25ab132
commit 9bf6b0dd93
1 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,9 @@
swagger generate spec --scan-models -o docs/spec.json swagger generate spec --scan-models -o docs/spec.json
(cd docs && packr && git add .) (cd docs && packr && git add .)
if [[ `git status --porcelain | grep docs` ]]; then if [[ `git diff docs` ]]; then
git status --porcelain | grep docs
git diff docs
echo Swagger or the Packr file is not up-to-date echo Swagger or the Packr file is not up-to-date
exit 1 exit 1
fi fi