awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
swagger-api avatar

swagger-api/swagger-codegen

0
View on GitHub↗
17,760 星标·5,983 分支·Mustache·Apache-2.0·4 次浏览swagger.io↗

Swagger Codegen

Swagger Codegen is a template-driven engine and multi-language toolkit used to generate API client SDKs, server stubs, and human-readable documentation from OpenAPI specifications. It translates these specifications into functional libraries and boilerplate routing code across various target programming languages.

The tool utilizes a pluggable generator module system and an integrated template engine, allowing for the customization of generated source code and the creation of new language-specific generators. It supports flexible specification sourcing via local files, remote HTTP endpoints, or a hosted web application.

The project covers a broad range of automation capabilities, including integration with build tools and CI/CD pipelines, containerized CLI execution, and configurable type mapping. It also provides features for artifact filtering, external model mapping to prevent duplicate definitions, and the ability to deploy generated SDKs directly to GitHub.

Features

  • Client Library Generation - Generates language-specific libraries from OpenAPI specifications to automate request handling and typed interfaces.
  • Client Library Generators - Provides a toolkit for automating the creation of language-specific client SDKs from OpenAPI specifications.
  • Server Stub Generation - Generates boilerplate server code and routing from OpenAPI specifications to establish RESTful services.
  • API Code Generators - Generates client libraries and server stubs by processing API definition files stored on the local filesystem.
  • API Documentation Generators - Automatically generates human-readable technical documentation from API specifications.
  • Documentation Generators - Transforms OpenAPI specifications into complete, human-readable documentation websites.
  • Server Boilerplate Generators - Automates the creation of boilerplate server code and routing based on OpenAPI specifications to accelerate RESTful service development.
  • Source Code Templates - Produces language-specific source code by merging parsed API specifications with predefined text templates.
  • Automated API Documentation - Produces technical specifications and documentation directly from OpenAPI definitions to ensure synchronization with code.
  • OpenAPI Specification Parsers - Parses OpenAPI and Swagger specifications to translate them into formats compatible with various language generators.
  • Multi-Language Client Generation - Translates a single API specification into multiple official client libraries across various programming languages.
  • API Client SDK Generators - Provides an engine for creating tailored, type-safe client SDKs based on API specifications.
  • Remote Specification Fetching - Allows generating API clients and server stubs by fetching specifications from remote HTTP endpoints.
  • Pluggable Generator Architectures - Organizes language-specific logic into discrete modules that implement a common interface for creating clients and servers.
  • Type Mapping Utilities - Implements configurable type mapping to translate OpenAPI data types into target language primitives.
  • Language Type Mappers - Resolves API specification data types to target language primitives through a configurable map of type definitions.
  • API Contract Synchronization - Automates the generation of clients and servers within build pipelines to maintain consistency with the API contract.
  • Generation Parameter Overrides - Allows overriding default package names, naming prefixes, and library templates via configuration files.
  • Build Tool Integrations - Integrates with standard build tools to automatically produce API clients and server stubs during the build cycle.
  • CI CD Pipelines - Automates code generation within version control workflows and build pipelines to keep clients and servers in sync with specifications.
  • Specification AST Generation - Translates API specifications into an internal object model to isolate the input format from the output generation logic.
  • Custom Generator Registries - Provides a boilerplate project structure and registration mechanism to build new language-specific generators.
  • Generation Templates - Provides customizable templates for injecting language-specific logic into the code generation pipeline.
  • API Client Development Tools - Generates client libraries from Swagger specifications.
  • Integration and Admin Frameworks - Automates generation of client libraries and server stubs.

Star 历史

swagger-api/swagger-codegen 的 Star 历史图表swagger-api/swagger-codegen 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Swagger Codegen 的开源替代方案

相似的开源项目,按与 Swagger Codegen 的功能重合度排序。
  • openapitools/openapi-generatorOpenAPITools 的头像

    OpenAPITools/openapi-generator

    26,412在 GitHub 上查看↗

    This project is a command-line tool and template-based scaffolding engine that transforms API interface specifications into functional client libraries and server stubs. By automating the creation of type-safe SDKs and boilerplate code, it bridges the gap between service definitions and implementation, allowing developers to maintain synchronized codebases across many programming languages. The tool distinguishes itself through a portable execution model that utilizes containerized build isolation to ensure identical output regardless of the host environment. It features a modular, plugin-bas

    Javaapiapi-clientapi-server
    在 GitHub 上查看↗26,412
  • oapi-codegen/oapi-codegenoapi-codegen 的头像

    oapi-codegen/oapi-codegen

    8,088在 GitHub 上查看↗

    oapi-codegen is an OpenAPI specification compiler and code generator for Go. It transforms OpenAPI definitions into type-safe Go client libraries, server boilerplate, and data models to facilitate contract-first API development. The tool distinguishes itself through a flexible customization system that allows users to override generated types and imports via specification extensions. It supports the use of custom text templates to redefine the final source code structure and provides a specification overlay mechanism to modify or remove endpoints without altering the original source file. Th

    Gogogolangopenapi
    在 GitHub 上查看↗8,088
  • openapitools/openapi-generator-cliOpenAPITools 的头像

    OpenAPITools/openapi-generator-cli

    1,956在 GitHub 上查看↗

    OpenAPI Generator CLI is a command-line utility designed to automate the creation of API artifacts from specification files. It functions as a tool for generating client libraries, server stubs, and documentation, enabling developers to produce consistent boilerplate code and reference materials across various programming languages. The project provides a wrapper that manages the lifecycle of a Java-based execution engine, which performs the actual code synthesis using logic-less templates. To ensure reproducible results and avoid dependency conflicts on the host system, the tool supports ver

    TypeScriptnpmopenapiopenapi-generator
    在 GitHub 上查看↗1,956
  • fern-api/fernfern-api 的头像

    fern-api/fern

    3,680在 GitHub 上查看↗

    Fern is a toolset for managing API specifications, generating type-safe client libraries, and producing hosted developer documentation. It provides a utility for validating, transforming, and exporting API definitions into standardized OpenAPI formats, serving as a system to maintain a consistent source of truth for API designs. The project differentiates itself through an automated SDK distribution pipeline that publishes generated libraries to package managers such as npm, PyPI, Maven, and NuGet. It also includes an AI-powered search assistant trained on API and SDK specifications to answer

    TypeScript
    在 GitHub 上查看↗3,680
查看 Swagger Codegen 的所有 30 个替代方案→

常见问题解答

swagger-api/swagger-codegen 是做什么的?

Swagger Codegen is a template-driven engine and multi-language toolkit used to generate API client SDKs, server stubs, and human-readable documentation from OpenAPI specifications. It translates these specifications into functional libraries and boilerplate routing code across various target programming languages.

swagger-api/swagger-codegen 的主要功能有哪些?

swagger-api/swagger-codegen 的主要功能包括:Client Library Generation, Client Library Generators, Server Stub Generation, API Code Generators, API Documentation Generators, Documentation Generators, Server Boilerplate Generators, Source Code Templates。

swagger-api/swagger-codegen 有哪些开源替代品?

swagger-api/swagger-codegen 的开源替代品包括: openapitools/openapi-generator — This project is a command-line tool and template-based scaffolding engine that transforms API interface specifications… oapi-codegen/oapi-codegen — oapi-codegen is an OpenAPI specification compiler and code generator for Go. It transforms OpenAPI definitions into… openapitools/openapi-generator-cli — OpenAPI Generator CLI is a command-line utility designed to automate the creation of API artifacts from specification… fern-api/fern — Fern is a toolset for managing API specifications, generating type-safe client libraries, and producing hosted… rsuter/nswag — NSwag is a toolchain for the .NET ecosystem designed to automate the generation of API documentation, server… azure/autorest — AutoRest is a multi-language SDK generator and OpenAPI code generator designed to produce consistent software…