1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #29077 from dnephin/fix-swagger-gen-validate

Fix swagger-gen validation
This commit is contained in:
Brian Goff 2016-12-02 14:08:46 -05:00 committed by GitHub
commit bed5a0bc2c

View file

@ -4,7 +4,7 @@ export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "${SCRIPTDIR}/.validate"
IFS=$'\n'
files=( $(validate_diff --diff-filter=ACMR --name-only -- 'api/types/' || true) )
files=( $(validate_diff --diff-filter=ACMR --name-only -- 'api/types/' 'api/swagger.yaml' || true) )
unset IFS
if [ ${#files[@]} -gt 0 ]; then
@ -26,5 +26,5 @@ if [ ${#files[@]} -gt 0 ]; then
echo 'Congratulations! All api changes are done the right way.'
fi
else
echo 'No api/types/ changes in diff.'
echo 'No api/types/ or api/swagger.yaml changes in diff.'
fi