mirror of
https://github.com/containers/podman.git
synced 2025-11-29 01:28:22 +08:00
image got converted to the new docker modules which were finally renamed to moby[1]. Podman however still uses docker so now the swagger lookup seems to find duplicated types which in general breaks the generation so exclude the new module for now until we convert podman and fix the new type issues swagger found. [1] https://github.com/containers/container-libs/pull/459 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
16 lines
476 B
Makefile
16 lines
476 B
Makefile
SWAGGER_OUT ?= swagger.yaml
|
|
|
|
SWAGGER ?= ../../test/tools/build/swagger
|
|
|
|
validate: ${SWAGGER_OUT}
|
|
$(SWAGGER) validate ${SWAGGER_OUT}
|
|
|
|
serve: ${SWAGGER_OUT}
|
|
$(SWAGGER) serve -F redoc -p=8080 swagger.yaml
|
|
|
|
.PHONY: ${SWAGGER_OUT}
|
|
${SWAGGER_OUT}:
|
|
# generate doesn't remove file on error
|
|
rm -f ${SWAGGER_OUT}
|
|
$(SWAGGER) generate spec -x github.com/sigstore/rekor -x github.com/docker/docker/api/types/network -x github.com/moby/moby/api -o ${SWAGGER_OUT} -i tags.yaml -w ./ -m
|