diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-01-22 17:43:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-22 17:43:57 -0500 |
commit | ac3a6b80b0ccd2f9592110811ccf6fd844110b9e (patch) | |
tree | 5f788ecb4b9a1f412c7b7ae0d61bdf0a6765b513 /pkg/api/Makefile | |
parent | 8b377a79c240e4480339358db3b87263ec6cfef3 (diff) | |
parent | da1186ae639c8101f05e4350986fdab0b1bd3566 (diff) | |
download | podman-ac3a6b80b0ccd2f9592110811ccf6fd844110b9e.tar.gz podman-ac3a6b80b0ccd2f9592110811ccf6fd844110b9e.tar.bz2 podman-ac3a6b80b0ccd2f9592110811ccf6fd844110b9e.zip |
Merge pull request #4936 from jwhonce/wip/swagger2
[CI:DOCS] Enable swagger validation for each PR
Diffstat (limited to 'pkg/api/Makefile')
-rw-r--r-- | pkg/api/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/api/Makefile b/pkg/api/Makefile index 915f0b9b3..f564b6516 100644 --- a/pkg/api/Makefile +++ b/pkg/api/Makefile @@ -2,12 +2,12 @@ export GO111MODULE=off SWAGGER_OUT ?= swagger.yaml +validate: ${SWAGGER_OUT} + swagger validate ${SWAGGER_OUT} + .PHONY: ${SWAGGER_OUT} ${SWAGGER_OUT}: # generate doesn't remove file on error rm -f ${SWAGGER_OUT} - swagger generate spec -o ${SWAGGER_OUT} -w ./ + swagger generate spec -o ${SWAGGER_OUT} -i tags.yaml -w ./ -# TODO: when pass validation move it under swagger. -validate: - swagger validate ${SWAGGER_OUT} |