OpenAPITools /openapi-generator
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
★ 26,864⑂ 7,762👁 214⑃ 15,241● 10,314▤ 85
+1
日增长
26,864
stars
7,762
forks
214
watchers
15,241
prs
10,314
issues
85
releases
README
OpenAPI Generator Master (7.28.0): :star::star::star: If you would like to contribute, please refer to guidelines and a list of open tasks. :star::star::star: :bangbang: To migrate from Swagger Codegen to OpenAPI Generator, please refer to the migration guide :bangbang: :notebook_with_decorative_cover: For more information, please refer to the Wiki page and FAQ :notebook_with_decorative_cover: :notebook_with_decorative_cover: The eBook A Beginner's Guide to Code Generation for REST APIs is a good starting point for beginners :notebook_with_decorative_cover: :warning: If the OpenAPI spec, templates or any input (e.g. options, environment 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. code injection). For security vulnerabilities, please contact [email protected]. :warning: :bangbang: Both "OpenAPI Tools" (https://OpenAPITools.org - the parent organization of OpenAPI Generator) and "OpenAPI Generator" are not affiliated with OpenAPI Initiative (OAI) :bangbang: Sponsors If you find OpenAPI Generator useful for work, please consider asking your company to support this Open Source project by becoming a sponsor. You can also individually sponsor the project by becoming a backer. Thank you to our bronze sponsors! Thank you GoDaddy for sponsoring the domain names, Linode for sponsoring the VPS, Checkly for sponsoring the API monitoring and Gradle for sponsoring Develocity Overview OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (both 2.0 and 3.0 are supported). Currently, the following languages/frameworks are supported: | | Languages/Frameworks
Top issues
#13124[REQ] [Java] Support of JakartaEE 964 comments · 2022-08-07#10010[BUG] [JAVA] openapi-generator-maven-plugin does not handle allOf composed of multiple objects58 comments · 2021-07-22#14765[BUG][Java][Spring] openapiNullable - JsonNullable usage is based on nullable property instead of required property50 comments · 2023-02-20#2701Duplicate classes / Models are generated if ( $ref) referenced externally.49 comments · 2019-04-19#13719[Announcement] [Gdscript] Godot 4.x Client Work in Progress42 comments · 2022-10-17#15Improve handling of oneOf39 comments · 2018-05-13#3796[BUG] [JavaSpring] Discriminator property gets serialized twice33 comments · 2019-08-29#7802[BUG] OpenAPI Generator fails to generate array models32 comments · 2020-10-25
Latest release
v7.27.0 released v7.27.0 2026-11-02v7.27.0 stable release comes with 170+ enhancements and bug fixes. Below are the highlights of the changes. For a full list of changes, please refer to the "Pull Request" tab. General - [DefaultCodegen] fix unescaped description for request body 25502 - Update jackson related dependencies to newer version in the root project 25460 - [core] Keep integer minimum/maximum next to $ref/allOf as integers 25441 - Fix inline Map response examples being treated as media types 25254 - [core] Fix OAS 3.1 typed map misclassified as free-form object (25224) 25229 - [core] Normalizer: x-items