aboutsummaryrefslogtreecommitdiff
path: root/pkg/api/Makefile
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-01-22 12:53:57 -0500
committerGitHub <noreply@github.com>2020-01-22 12:53:57 -0500
commitc40664d698e8324d0c7c3cff072410c1a8af6a36 (patch)
tree8e7097e1c8db80e204ef725c960aefa8b5c980e0 /pkg/api/Makefile
parent9f146b1b54736ec1b683e3a7381c85d10b1a66a3 (diff)
parent68896b18e579d70822543748a2f5d95a55daaca1 (diff)
downloadpodman-c40664d698e8324d0c7c3cff072410c1a8af6a36.tar.gz
podman-c40664d698e8324d0c7c3cff072410c1a8af6a36.tar.bz2
podman-c40664d698e8324d0c7c3cff072410c1a8af6a36.zip
Merge pull request #4912 from jwhonce/wip/swagger
[CI:DOCS] Update build images
Diffstat (limited to 'pkg/api/Makefile')
-rw-r--r--pkg/api/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/pkg/api/Makefile b/pkg/api/Makefile
index 8a1556800..915f0b9b3 100644
--- a/pkg/api/Makefile
+++ b/pkg/api/Makefile
@@ -2,6 +2,12 @@ export GO111MODULE=off
SWAGGER_OUT ?= swagger.yaml
-swagger:
+.PHONY: ${SWAGGER_OUT}
+${SWAGGER_OUT}:
+ # generate doesn't remove file on error
+ rm -f ${SWAGGER_OUT}
swagger generate spec -o ${SWAGGER_OUT} -w ./
- cat tags.yaml >> swagger.yaml
+
+# TODO: when pass validation move it under swagger.
+validate:
+ swagger validate ${SWAGGER_OUT}