mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix swagger-gen validation.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
(cherry picked from commit f247a99c6d
)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
parent
7ec079dbfd
commit
8f961397f4
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
source "${SCRIPTDIR}/.validate"
|
source "${SCRIPTDIR}/.validate"
|
||||||
|
|
||||||
IFS=$'\n'
|
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
|
unset IFS
|
||||||
|
|
||||||
if [ ${#files[@]} -gt 0 ]; then
|
if [ ${#files[@]} -gt 0 ]; then
|
||||||
|
@ -26,5 +26,5 @@ if [ ${#files[@]} -gt 0 ]; then
|
||||||
echo 'Congratulations! All api changes are done the right way.'
|
echo 'Congratulations! All api changes are done the right way.'
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo 'No api/types/ changes in diff.'
|
echo 'No api/types/ or api/swagger.yaml changes in diff.'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue