Sign inSign up

alexleonhardt/oapi-codegen

By alexleonhardt

Updated about 7 years ago

Image
0

409

alexleonhardt/oapi-codegen repository overview

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 client option doesn't seem to work

Tag summary

Content type

Image

Digest

Size

215.9 MB

Last updated

about 7 years ago

docker pull alexleonhardt/oapi-codegen