aboutsummaryrefslogtreecommitdiff
path: root/pkg/api/Makefile
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2020-01-16 10:33:43 -0700
committerJhon Honce <jhonce@redhat.com>2020-01-21 14:19:42 -0700
commit68896b18e579d70822543748a2f5d95a55daaca1 (patch)
tree2765dda0be9330629c40370141bc1a7750015993 /pkg/api/Makefile
parentf467bb20bd1c98b1706fa3c4448857800395c169 (diff)
downloadpodman-68896b18e579d70822543748a2f5d95a55daaca1.tar.gz
podman-68896b18e579d70822543748a2f5d95a55daaca1.tar.bz2
podman-68896b18e579d70822543748a2f5d95a55daaca1.zip
Update build images
* Add swagger annotations for all the query and response parameters for buildimages * Improve populating the BuildOptions struct * Improve swagger.json generation, removing tags.xml and move tag definiation into the swagger:meta block * Update Makefile to be more robust, added target for validation * TODO once validation passes add that step to the generation step Signed-off-by: Jhon Honce <jhonce@redhat.com>
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}