provides github.com/deepmap/oapi-codegen as a go binary in a container;
default CMD is
/bin/sh
you then need to add the options of what you'd like to generate and also ensure you that you mount in the YAML file .. for more info, check out https://github.com/deepmap/oapi-codegen
Usage:
docker run -ti --rm -v /path/to/code/with/openapi-spec:/mnt alexleonhardt/oapi-codegen oapi-codegen /mnt/openapi-spec.yaml -generate types,client -package client > client.go
Note:
-package clientoption doesn't seem to work
Content type
Image
Digest
Size
215.9 MB
Last updated
about 7 years ago
docker pull alexleonhardt/oapi-codegen