Does anyone use Swagger Codegen or OpenAPI Generator SDKs in Production?

I used it to bootstrap our API based on the spring codegen and now use it to change and add the domain models and API endpoints. You still have to change some aspects of the generated classes but it makes refactoring very painless and prevents me from piling on technical debt. Its extremely helpful to have the generated swagger-ui for manual testing and you can import the spec to Postman which generate stubs so you have a nice starting point for and TODO overview for writing your tests.

Haven't used the SDKs yet though. I tried to use the various js clients but they didn't provide any advantage over simple fetch libraries.

I see great potential in codegen for more complex js frameworks like Angular or React + Redux and also test automation.


I did a search in Github and found some projects (SDKs) generated by Swagger-Codegen.

Here is one example: Online Convert API2 Swift SDK

You can also refer to the Swagger-Codegen Github page for discussion on use case of Swagger-Codegen

UPDATE: Here are some but not all companies/projects using Swagger Codegen in production: https://github.com/swagger-api/swagger-codegen#companiesprojects-using-swagger-codegen

Note: As of July 2017, Swagger Codegen offers more than 70 generators for API client, server stubs and API documentations.

UPDATE: On May 2018, about 50 top contributors and template creators of Swagger Codegen decided to fork Swagger Codegen to maintain a community-driven version called OpenAPI Generator. Please refer to the Q&A for more information.


As a platform architect and DevOps, I can say I successfully introduced it into a project which uses Dreamfactory API Automation as BaaS and APIs are defined by swagger. So the SDKs for the mobile app aswell as internal applications are generated with swagger-codegen. We encountered a few bugs in the swagger-codegen template for our languages, which were fairly easy to fix. Overall it saved alot time and reduces potential sources of error.