Files
podman/pkg/api/Makefile
Paul Holzinger 6f9bf07a34 swagger: fix for new docker/moby module conflict
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>
2025-11-14 12:29:27 +01:00

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