Adding a script to verify that swagger spec is updated

This commit is contained in:
nikhiljindal
2015-06-08 01:38:08 -07:00
parent 0f1c4c25c3
commit a89d2da249
6 changed files with 68 additions and 6 deletions

View File

@@ -123,4 +123,16 @@ else
fi
echo "${reset}"
echo -ne "Checking for swagger spec that need updating... "
if ! hack/verify-swagger-spec.sh > /dev/null; then
echo "${red}ERROR!"
echo "Swagger spec needs to be updated."
echo "To regenerate the spec, run:"
echo " hack/update-swagger-spec.sh"
exit_code=1
else
echo "${green}OK"
fi
echo "${reset}"
exit $exit_code