Skip to content

Instantly share code, notes, and snippets.

@YasuhideKato
Created October 20, 2015 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YasuhideKato/c536a0eb2324717a4ad8 to your computer and use it in GitHub Desktop.
Save YasuhideKato/c536a0eb2324717a4ad8 to your computer and use it in GitHub Desktop.
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