Created
October 20, 2015 06:50
-
-
Save YasuhideKato/c536a0eb2324717a4ad8 to your computer and use it in GitHub Desktop.
swagger_sdk_build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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