☰ Menu
Home›Command-line Tools›swagger-codegen@2
CLI Open source 18 installs/mo

swagger-codegen@2 for Mac

swagger-codegen@2

Generate clients, server stubs, and docs from an OpenAPI spec

swagger-codegen@2 — overview

Swagger Codegen

This is the Swagger Codegen project, which allows generation of API client libraries (SDK generation), server stubs and documentation automatically given an OpenAPI Spec.

? If you would like to contribute, please refer to guidelines and a list of open tasks.?

? For more information, please refer to the Wiki page and FAQ ?

⚠️ If the OpenAPI Description or Swagger file is obtained from an untrusted source, please make sure you've reviewed the artefact before using Swagger Codegen to generate the API client, server stub or documentation as code injection may occur. ⚠️

Versioning ⚠️ this document refers to version 2.X, check here for 3.X.

Both 2.X and 3.X version lines of Swagger Codegen are available and are independently maintained.

NOTES: Versions 2.X (io.swagger) and 3.X (io.swagger.codegen.v3) have different group ids. OpenAPI 3.0.X is supported from the 3.X version only.

For full versioning information, please refer to the versioning documentation.

Supported Languages and Frameworks

Currently, the following languages/frameworks are supported: API clients: ActionScript, Ada, Apex, Bash, C# (.net 2.0, 3.5 or later), C++ (cpprest, Qt5, Tizen), Clojure, Dart, Elixir, Elm, Eiffel, Erlang, Go, Groovy, Haskell (http-client, Servant), Java (Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured), Kotlin, Lua, Node.js (ES5, ES6, AngularJS with Google Closure Compiler annotations) Objective-C, Perl, PHP, PowerShell, Python, R, Ruby, Rust (rust, rust-server), Scala (akka, http4s, swagger-async-httpclient), Swift (2.x, 3.x, 4.x, 5.x), Typescript (Angular1.x, Angular2.x, Fetch, jQuery, Node) Server stubs: Ada, C# (ASP.NET Core, NancyFx), C++ (Pistache, Restbed), Erlang, Go, Haskell (Servant), Java (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, RestEasy, Play Framework, PKMST), Kotlin, PHP (Lumen, Slim, Silex, Symfony, Zend Expressive), Python (Flask), NodeJS, Ruby (Sinatra, Rails5), Rust (rust-server), Scala (Finch, Lagom, Scalatra) API documentation generators: HTML, Confluence Wiki Configuration files: Apache2 Others: JMeter

Check out OpenAPI-Spec for additional information about the OpenAPI project.

Versioning Compatibility Getting Started Generators To generate a sample client library Generating libraries from your server Validating your OpenAPI Spec Generating dynamic html api documentation Generating static html api documentation Workflow Integration Online Generators Contribution Swagger Codegen Core Team

Compatibility

The OpenAPI Specification has undergone 3 revisions since initial creation in 2010. The current stable versions of Swagger Codegen project have the following compatibilities with the OpenAPI Specification:

Swagger Codegen Version | Release Date | Swagger / OpenAPI Spec compatibility | Notes -------------------------- |--------------| -------------------------- | -----

Details

根据 OpenAPI 规范生成客户端、服务器存根和文档

How to install swagger-codegen@2

  1. Open Terminal (press ⌘ + Space and type “Terminal”).
  2. If Homebrew is not installed yet, run the command below first.
  3. Run this command:

Latest 10 releases

Last updated 2026-11-04; current version v3.0.85, with the latest 10 releases listed.

VersionReleasedTypeSizemacOSWindowsLinux
v3.0.852026-11-04Stable————
v3.0.842026-11-02Stable————
v3.0.832026-10-26Stable————
v2.4.532026-10-22Stable————
v3.0.822026-08-04Stable————
v3.0.812026-05-18Stable————
v3.0.802026-05-14Stable————
v3.0.792026-04-22Stable————
v2.4.522026-04-15Stable————
v2.4.512026-03-12Stable————

Data from GitHub Releases; stable releases first, each group sorted newest first.

Compared with similar apps

Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.

Compared with similar apps
AppVersionLicenseArchitecture30-day installs
swagger-codegen@2v3.0.85Apache-2.0CLI18
milletv0.15.3Apache-2.0 OR MITCLI21
dict1.13.3GPL-2.0-or-laterCLI18
ltex-ls-plus18.7.0MPL-2.0CLI18

Similar apps: Command-line Tools

Leave a comment

评论表单加载中…