OpenAPI Generator CLI 是一个命令行工具,旨在自动化从规范文件创建 API 工件的过程。它作为一个用于生成客户端库、服务器存根和文档的工具,使开发者能够在各种编程语言中生成一致的样板代码和参考资料。
openapitools/openapi-generator-cli 的主要功能包括:API Development Tools, Client Library Generation, Server Stub Generation, OpenAPI Client SDK Generators, Custom Artifact Generators, API Client SDK Generators, API Documentation Generators, CLI Build Tools。
openapitools/openapi-generator-cli 的开源替代品包括: swagger-api/swagger-codegen — Swagger Codegen is a template-driven engine and multi-language toolkit used to generate API client SDKs, server stubs,… fern-api/fern — Fern is a toolset for managing API specifications, generating type-safe client libraries, and producing hosted… azure/autorest — AutoRest is a multi-language SDK generator and OpenAPI code generator designed to produce consistent software… oapi-codegen/oapi-codegen — oapi-codegen is an OpenAPI specification compiler and code generator for Go. It transforms OpenAPI definitions into… apple/swift-openapi-generator — The Swift OpenAPI Generator is a build-time tool that produces type-safe Swift client and server code directly from… flasgger/flasgger — Flasgger is a documentation framework for Flask applications that generates OpenAPI specifications and an integrated…
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,
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
AutoRest is a multi-language SDK generator and OpenAPI code generator designed to produce consistent software development kits from a single API definition. It functions as a REST API client generator that transforms Swagger and OpenAPI specification files into functional, typed HTTP client libraries. The tool automates the SDK development workflow by converting design documents into source code, ensuring that the resulting implementations match the defined API contract across different programming languages. The system employs specification-driven development using an intermediate represent
The Swift OpenAPI Generator is a build-time tool that produces type-safe Swift client and server code directly from OpenAPI specification documents. By integrating with build systems through native plugins, it automates the creation of strongly-typed interfaces and protocol stubs that map network operations to native methods, ensuring that application code remains strictly consistent with defined data schemas. The project distinguishes itself through a protocol-oriented architecture that decouples business logic from specific transport implementations. It utilizes a pluggable transport layer