Swagger-codegen for window

Prerequisites

Java環境配置

Export JAVA_HOME in order to use the supported Java version:

Building

Install swagger-codegen-cli.jar

1
wget https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.41/swagger-codegen-cli-3.0.41.jar -O swagger-codegen-cli.jar

After cloning the project, you can build it from source with this command:

1
mvn clean package

If you don’t have maven installed, you may directly use the included maven wrapper, and build with the command:
需要VPN

1
./mvnw clean package

To get a list of general options available, please run

1
java -jar swagger-codegen-cli.jar generate -i ./swagger.json -l typescript-axios -o ./generate --additional-properties modelPropertyNaming=original stringEnums=true