Skip to content

Instantly share code, notes, and snippets.

View komiyak's full-sized avatar

Kosuke Komiya komiyak

View GitHub Profile
cd your-project/
mkdir -p build/
wget -qO- | tar zxvf - -C ./build
cd build/swagger-codegen-3.0.8/
mvn clean package
# 下記の jar が作られたら成功です
# ./build/swagger-codegen-3.0.8/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar
java -jar build/swagger-codegen-3.0.8/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar \
generate -i petstore.yaml -l html2 -o out/
komiyak /
Last active May 13, 2019 09:07
Build a html from your OpenAPI Specification (OAS 3.0).
if [ ! -d ./build/swagger-codegen-$CODEGEN_V/ ]; then
rm -rf build/
mkdir -p build/
wget -qO-$CODEGEN_V.tar.gz | tar zxvf - -C ./build