Skip to content

Swagger Codegen Building

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

Terminal window
mvn clean package

To install, run brew install swagger-codegen

Here is an example usage:

Terminal window
swagger-codegen generate -i http://petstore.swagger.io/v2/swagger.json -l ruby -o /tmp/test/

Please refer to wiki for more information.

This will create the Swagger Codegen library from source.

Terminal window
mvn package

The templates are included in the library generated. If you want to modify the templates, you’ll need to either repackage the library OR specify a path to your scripts.