swagger-api/swagger-codegen

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI /...

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 41 minutes ago
Added to GitGenius on September 3rd, 2026
Created on July 6th, 2011
Open Issues & Pull Requests: 3,444 (+0)
GitHub issues: Enabled
Number of forks: 5,962
Total Stargazers: 17,787 (+0)
Total Subscribers: 409 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 17.2 days
Mean response time: 282.4 days
90th percentile: 1042.3 days
Tracked items: 117

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 2% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 120
New in 7 days: 0
Closed in 7 days: 1
Avg open age: 1,275 days
Stale 30+ days: 120
Stale 90+ days: 111

Recent activity

Opened in 7 days: 0
Closed in 7 days: 1
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • Bug (10)
  • help wanted (4)
  • Client: Java (3)
  • Enhancement: General (3)
  • Issue: Bug (3)
  • pull-request-welcome (3)
  • General: Suggestion (2)
  • security vulnerability (2)

Most active issues this week

Detailed Description

Swagger Codegen is a template-driven code generation tool that automatically produces API client libraries, server stubs, and documentation from OpenAPI and Swagger specifications.

The tool solves the problem of manually writing boilerplate code for API integrations across multiple languages and frameworks. It parses an OpenAPI specification and uses Mustache templates to generate language-specific implementations, allowing developers to keep client and server code synchronized with API definitions as they evolve. The template-driven architecture means that generation logic is separated from the specification parsing, making it possible to customize output for different use cases.

Swagger Codegen suits teams building APIs that need to support multiple client languages or those maintaining SDKs across diverse platforms. The tool supports a broad range of targets: API clients for over thirty languages including Java, Python, Go, TypeScript, and Swift; server stubs for frameworks like Spring, Flask, and Node.js; and documentation generation. It works with both Swagger 2.0 and OpenAPI 3.0 specifications, though OpenAPI 3.0 support requires the 3.X version line. The README emphasizes that untrusted OpenAPI specifications should be reviewed before code generation, as code injection is possible. The project maintains separate version lines with different group identifiers, so users must select between 2.X and 3.X based on their specification version and needs.

The project has a substantial base of real-world adopters, as evidenced by the fact that nearly all open issues originate from external users rather than the core team. However, issues and pull requests frequently experience delays of weeks or longer before receiving initial responses. Work in the issue tracker concentrates heavily on bug reports and Java client generation, suggesting these areas receive the most attention from maintainers.