diff options
author | Jhon Honce <jhonce@redhat.com> | 2020-01-22 10:41:35 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2020-01-22 15:17:14 -0700 |
commit | da1186ae639c8101f05e4350986fdab0b1bd3566 (patch) | |
tree | dfc8a73189dc16f9f36b3cf9f56f571ccbc4cfc3 /pkg/api/Makefile | |
parent | c42383f70a7832faf1ba920d6c9e169a88b0e4d9 (diff) | |
download | podman-da1186ae639c8101f05e4350986fdab0b1bd3566.tar.gz podman-da1186ae639c8101f05e4350986fdab0b1bd3566.tar.bz2 podman-da1186ae639c8101f05e4350986fdab0b1bd3566.zip |
Enable swagger validation for each PR
* Update swagger:operation's to pass validation
* 'name' path parameter now used throughout API
* Added #/response/ok for 200 returns, TBD values have been replaced
with legal values.
Signed-off-by: Jhon Honce <jhonce@redhat.com>
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} |