Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
swagger_sdk_build
#!/bin/sh
#https://hub.docker.com/r/sandcastle/swagger-codegen-docker/
#https://github.com/sandcastle/swagger-codegen-docker
if [ $# != 1 ]; then
echo "usage: $0 target_lang" 1>&2
exit 0
fi
lang=$1
docker run \
-v "${PWD}/spec:/spec" \
-v "${PWD}/output/$lang:/gen" \
-e "LANGUAGE=$lang" \
-e "SWAGGER_FILE=swagger.yml" \
sandcastle/swagger-codegen-docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.