mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-09-03 14:17:50 +00:00
* 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>
13 lines
298 B
Makefile
13 lines
298 B
Makefile
export GO111MODULE=off
|
|
|
|
SWAGGER_OUT ?= swagger.yaml
|
|
|
|
.PHONY: ${SWAGGER_OUT}
|
|
${SWAGGER_OUT}:
|
|
# generate doesn't remove file on error
|
|
rm -f ${SWAGGER_OUT}
|
|
swagger generate spec -o ${SWAGGER_OUT} -w ./
|
|
|
|
# TODO: when pass validation move it under swagger.
|
|
validate:
|
|
swagger validate ${SWAGGER_OUT}
|