⭐️ ⭐️ ⭐️ If you would like to contribute, please refer to and a list of. ⭐️ ⭐️ ⭐️ ‼️ To migrate from Swagger Codegen to OpenAPI Generator, please refer to the ‼️ 📔 For more information, please refer to the and 📔 📔 The eBook is a good starting point for beginners 📔 ⚠️ If the OpenAPI spec, templates or any input (e.g. Options, envirionment variables) is obtained from an untrusted source or environment, please make sure you've reviewed these inputs before using OpenAPI Generator to generate the API client, server stub or documentation to avoid potential security issues (e.g. ) ⚠️ ‼️ Both 'OpenAPI Tools' ( - the parent organization of OpenAPI Generator) and 'OpenAPI Generator' are not affiliated with OpenAPI Initiative (OAI) ‼️ Overview OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an (both 2.0 and 3.0 are supported). Wget -O openapi-generator-cli.jar For Windows users, you will need to install or you can use Invoke-WebRequest in PowerShell (3.0+), e.g. Invoke-WebRequest -OutFile openapi-generator-cli.jar After downloading the JAR, run java -jar openapi-generator-cli.jar help to show the usage. For Mac users, please make sure Java 8 is installed (Tips: run java -version to check the version), and export JAVAHOME in order to use the supported Java version.

Openapi-generator generate -i -g ruby -o /tmp/test/ To reinstall with the latest master, run brew reinstall -HEAD openapi-generator Public Pre-built Docker images. (official CLI).

Swagger Generator Online

(official web service) OpenAPI Generator CLI Docker Image The OpenAPI Generator image acts as a standalone executable. It can be used as an alternative to installing via homebrew, or for developers who are unable to install Java or upgrade the installed version. To generate code with this image, you'll need to mount a local location as a volume. Java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -i -g java -o samples/client/petstore/java/okhttp-gson with a number of options. You can also get the options with the help generate command (below only shows partial results): NAME openapi-generator-cli generate - Generate code with the specified generator.

Swagger

Please refer to on how to customize the output (e.g. Package name, version) Please refer to on how to integrate OpenAPI generator with Maven, Gradle, Github and CI/CD. Here are the public online services:. latest stable version:. latest master: (updated with latest master every hour) The server is sponsored by (These services are beta and do not have any guarantee on service level) Please refer to on how to run and use the openapi-generator-online - a web service for openapi-generator.

The OpenAPI Generator project is intended as a benefit for users of the Open API Specification. The project itself has the as specified. In addition, please understand the following points:.

The templates included with this project are subject to the. Generated code is intentionally not subject to the parent project license When code is generated from this project, it shall be considered AS IS and owned by the user of the software.

Online

There are no warranties-expressed or implied-for generated code. You can do what you wish with it, and once generated, the code is your responsibility and subject to the licensing terms that you deem appropriate. Here are some companies/projects (alphabetical order) using OpenAPI Generator in production. To add your company/project to the list, please visit and click on the icon to edit the page. 2018/05/12 - by. 2018/05/15 - by.

2018/05/15 - by. 2018/06/08 - by. 2018/06/21 - by at. 2018/06/27 -at.

2018/07/19 - by. 2018/08/22 - by. 2018/10/31 -. 2018/11/03 - by. 2018/11/19 - by at OpenAPI Generator core team members are contributors who have been making significant contributions (review issues, fix bugs, make enhancements, etc) to the project on a regular basis.