# Swagger（软件）

**Swagger** 在今天指两件相互关联的事：其一，是如今名为 **OpenAPI 规范**（OpenAPI Specification，OAS）之物的原名——这是一种与语言无关的 HTTP API 接口描述标准，让人类和计算机无需访问源代码、文档或检查网络流量，就能发现某项服务具备哪些能力<sup>[1](https://swagger.io/specification/)</sup>；其二，是 SmartBear 公司旗下的 API 开发工具品牌，包括 [Swagger UI](https://www.edgepedia.org/zh/swagger-ui)、Swagger Editor 和 Swagger Codegen<sup>[2](https://scalar.com/learn/openapi/openapi-vs-swagger)</sup>。该规范本身已不再叫 Swagger：自 2015 年起，它由 OpenAPI 倡议组织（OpenAPI Initiative）——[Linux 基金会](https://www.edgepedia.org/zh/linux-foundation)旗下的协作项目——治理，并作为社区驱动的开放规范开发<sup>[3](https://github.com/swagger-api/swagger-spec/)</sup>。在实践中，一份 OpenAPI 文档（以 YAML 或 JSON 编写）描述 API 的路径、操作、参数和模式，并驱动文档生成、代码生成与测试<sup>[4](https://spec.openapis.org/oas/v3.1.2)</sup>。

| 关键事实 | 详情 |
|---|---|
| 名称涵盖的范围 | OpenAPI 规范（原 Swagger 规范），由 Linux 基金会下的 OpenAPI 倡议组织治理，外加 SmartBear 的 Swagger 工具品牌<sup>[3](https://github.com/swagger-api/swagger-spec/)</sup><sup> • </sup><sup>[2](https://scalar.com/learn/openapi/openapi-vs-swagger)</sup> |
| 起源 | 2010 年创建于 Wordnik，一年后以开源许可证发布；2015 年由 SmartBear 从 Reverb Technologies 收购<sup>[5](https://www.linuxfoundation.org/press/press-release/new-collaborative-project-to-extend-swagger-specification-for-building-connected-applications-and-services)</sup> |
| 治理 | Open API 倡议组织于 2015 年 11 月 5 日启动，创始成员包括 Google、IBM 和 Microsoft<sup>[6](https://www.openapis.org/news/2015/11/05/smartbear-launches-open-api-initiative-with-key-industry-leaders-including-google-ibm-and-microsoft)</sup> |
| 当前版本 | 已发布版本从 v2.0 到 v3.0.4，以及从 v3.1.2 到 v3.2.1；3.1 使模式对象与 JSON Schema Draft 2020-12 完全对齐<sup>[7](https://spec.openapis.org/oas/)</sup><sup> • </sup><sup>[8](https://swagger.io/blog/swagger-supports-openapi-3-1/)</sup> |
| 采用规模 | APIstic 研究语料库收录了来自 GitHub 和 SwaggerHub 的 1,266,050 份 OpenAPI 规范（其中不重复的有 856,259 份）<sup>[9](https://design.inf.usi.ch/sites/default/files/biblio/MSR2024-Serbout-Pautasso-APIstic.pdf)</sup>；API Evangelist 的一份目录发现，其追踪的 API 提供方中有 26.2% 采用了该规范<sup>[10](https://reports.apievangelist.com/reports/the-openapi-standard/)</sup> |
| 版本构成 | 在 2,287 家 API 提供方中，8.3% 仅发布 Swagger 2.0，41.3% 以 OpenAPI 3.0.x 为最新版本，50.1% 使用 OpenAPI 3.1.x<sup>[11](https://apievangelist.com/2026/10/05/one-in-ten-api-providers-still-publish-swagger/)</sup> |
| 旗舰工具 | Swagger UI 将 OpenAPI 文档渲染为交互式文档；其 npm 包采用 Apache-2.0 许可证，5.32.0 版本每周下载量为 14.49 万次<sup>[12](https://registry.npmjs.org/swagger-ui)</sup> |

## 历史

Swagger 始于词典公司 Wordnik，其服务器生成了一份“资源声明”（Resource Declaration），被描述为 API 的站点地图；Wordnik 在 petstore.swagger.wordnik.com 上演示了沙箱测试，并编写了一个模板驱动的代码生成器，可生成多种语言的客户端<sup>[13](https://blog.wordnik.com/whats-with-the-swaggering)</sup>。据 Linux 基金会的启动公告，Swagger 创建于 2010 年，一年后以开源许可证发布<sup>[5](https://www.linuxfoundation.org/press/press-release/new-collaborative-project-to-extend-swagger-specification-for-building-connected-applications-and-services)</sup>。

1.0、1.1 和 1.2 三个版本在大约三年间相继问世，改动不大；随后是规模更大的 2.0 重新设计，改进了对 [JSON Schema](https://www.edgepedia.org/zh/json-schema) 的支持和编写简洁性，并新增扩展前缀机制，使开发者能够扩展规范而不污染其核心<sup>[14](https://www.infoq.com/articles/swagger-interview-tony-tam/)</sup>。

**转向 OpenAPI。** SmartBear 于 2015 年从 Reverb Technologies 收购了 Swagger API 开源项目<sup>[5](https://www.linuxfoundation.org/press/press-release/new-collaborative-project-to-extend-swagger-specification-for-building-connected-applications-and-services)</sup>，并于 2015 年 11 月 5 日在 Linux 基金会下启动 [Open API](https://www.edgepedia.org/zh/open-api) 倡议组织，Google、IBM 和 Microsoft 均为创始成员<sup>[6](https://www.openapis.org/news/2015/11/05/smartbear-launches-open-api-initiative-with-key-industry-leaders-including-google-ibm-and-microsoft)</sup>。现有的 Swagger 规范被原样移交给该倡议组织的工作组，工作组将在 Swagger 基础上发布带有重大变更的自有规范，而 Swagger 开源工具则保持开源，并支持新规范<sup>[15](https://www.infoq.com/news/2016/01/tony-tam-oai-initiative-swagger/)</sup>。治理架构包括一个负责维护和演进规范的技术开发者委员会（Technical Developer Committee）<sup>[5](https://www.linuxfoundation.org/press/press-release/new-collaborative-project-to-extend-swagger-specification-for-building-connected-applications-and-services)</sup>。Apiary 于 2016 年、MuleSoft 于 2017 年加入该倡议<sup>[16](https://blog.postman.com/raml-and-api-blueprint-where-are-they-now/)</sup>。

该倡议于 2015 年在 Linux 基金会下成立，旨在将 Swagger 规范扩展为厂商中立的开放规范<sup>[5](https://www.linuxfoundation.org/press/press-release/new-collaborative-project-to-extend-swagger-specification-for-building-connected-applications-and-services)</sup>；2017 年 12 月，规范更新至 3.0 版，并更名为 OpenAPI 规范<sup>[17](https://www.scitepress.org/Papers/2020/93812/93812.pdf)</sup>。

## OpenAPI 规范

OpenAPI 描述（OpenAPI Description，OAD）以形式化方式描述 API 的对外接口及其语义。它由一份入口文档（必须是 OpenAPI 文档）以及任何被引用的文档组成；与 OAS 3.*.* 兼容的文档包含一个必需的 `openapi` 字段，指明其所使用的版本<sup>[4](https://spec.openapis.org/oas/v3.1.2)</sup>。

每个版本都建立在相同的核心之上：一个承载元信息的 info 部分、一份 URL 模板到其 HTTP 操作的映射、可通过 `$ref` 指针复用的定义，以及声明的安全方案。<sup>[18](https://thebiglearn.org/articles/swagger-openapi-specification-guide)</sup> 路径对象列出 API 暴露的所有路径，其操作以 GET 或 POST 等 HTTP 动词标注；一个端点即路径与操作的组合<sup>[19](https://link.springer.com/article/10.1007/s10586-023-04237-x)</sup>。操作带有用于表达语义的 summary 和 description 字段，可声明一个请求，但每个状态码可对应多个响应载荷，并使用扩展的 JSON Schema 来定义分层的 JSON 或 XML 载荷模式，以 application/json 等媒体类型标注<sup>[19](https://link.springer.com/article/10.1007/s10586-023-04237-x)</sup>。

**从 2.0 到 3.0。** OpenAPI 3.0 将 `swagger` 版本属性更名为 `openapi`，用 `servers` 数组取代 `host`/`basePath`/`schemes`，其 URL 支持模板变量，并用 `requestBody` 取代 body 参数，其 content 映射将每种媒体类型与各自的模式关联<sup>[17](https://www.scitepress.org/Papers/2020/93812/93812.pdf)</sup><sup> • </sup><sup>[18](https://thebiglearn.org/articles/swagger-openapi-specification-guide)</sup>。它将可复用组件整合到 `components` 对象下，涵盖模式、参数、响应、requestBodies、标头、示例、链接、回调和 securitySchemes，并新增了模式关键字，包括 `oneOf`、`anyOf`、`not` 和 `discriminator`，以及 `http bearer` 和 `openIdConnect` 安全方案<sup>[17](https://www.scitepress.org/Papers/2020/93812/93812.pdf)</sup><sup> • </sup><sup>[18](https://thebiglearn.org/articles/swagger-openapi-specification-guide)</sup>。

**3.1 带来了哪些变化。** OpenAPI 3.0 曾使用 JSON Schema Draft 4 的扩展子集，因此对 OpenAPI 验证器有效的模式，对标准 JSON Schema 验证器可能无效，反之亦然。OpenAPI 3.1 终结了这种分歧：其模式对象基于 JSON Schema Draft 2020-12，弃用 `nullable` 而改用类型数组，`exclusiveMinimum`/`exclusiveMaximum` 变为数值型<sup>[18](https://thebiglearn.org/articles/swagger-openapi-specification-guide)</sup><sup> • </sup><sup>[8](https://swagger.io/blog/swagger-supports-openapi-3-1/)</sup>。3.1 版还引入了顶层 `webhooks` 字段，用于描述带外注册的 webhook，允许组件对象定义可复用的 pathItems，为 Info 对象新增 summary 字段，为 License 对象新增 SPDX 标识符，并放宽了顶层要求，规定 `paths`、`components` 或 `webhooks` 中至少存在一个即可，而此前版本要求必须有 `paths`<sup>[8](https://swagger.io/blog/swagger-supports-openapi-3-1/)</sup>。值得注意的是，OAS 技术指导委员会（Technical Steering Committee）经社区辩论后决定不遵循语义化版本规范，允许在小版本号升级中引入这些破坏性变更<sup>[8](https://swagger.io/blog/swagger-supports-openapi-3-1/)</sup>。

3.1 之后，该倡议于 2024 年 10 月 25 日宣布了补丁版本 3.0.4 和 3.1.1，仅包含措辞澄清，无结构性变更；3.1.1 当时是最新且推荐的版本<sup>[20](https://www.openapis.org/blog/2024/10/25/announcing-openapi-specification-patch-releases)</sup>。2025 年 9 月发布了 3.2.0 版<sup>[10](https://reports.apievangelist.com/reports/the-openapi-standard/)</sup>，已发布版本索引现在也列出了 v3.2.1<sup>[7](https://spec.openapis.org/oas/)</sup>。

## 工具生态

Swagger 项目提供三款官方开源工具：Swagger Editor、Swagger UI 和 Swagger Codegen，后者可生成 Java、Python 和 PHP 等语言的客户端与服务器代码<sup>[17](https://www.scitepress.org/Papers/2020/93812/93812.pdf)</sup>。

**Swagger UI** 将 OpenAPI 文档渲染为交互式文档。该工具以 Apache 2.0 许可证发布，5.32.0 版可处理 Swagger 2.0 以及 OpenAPI 3.0、3.1 和 3.2.0 版本，此判断依据其 README 中的兼容性表格。<sup>[2](https://scalar.com/learn/openapi/openapi-vs-swagger)</sup> 它以三个 npm 模块发布：swagger-ui、swagger-ui-dist 和 swagger-ui-react<sup>[12](https://registry.npmjs.org/swagger-ui)</sup>。其对 OpenAPI 3.1 的支持新增了顶层 `webhooks` 和 `jsonSchemaDialect` 字段（后者为模式对象设置默认的 `$schema`）以及 SPDX 许可证标识符，后者与 `url` 字段互斥<sup>[21](https://github.com/swagger-api/swagger-ui/pull/8367)</sup>。

**Swagger Editor** 是用于创建契约的工具，可将 OpenAPI 文档转换为人类可读的文档<sup>[17](https://www.scitepress.org/Papers/2020/93812/93812.pdf)</sup><sup> • </sup><sup>[22](https://arxiv.org/pdf/2402.05102)</sup>。

**Swagger Codegen 及其分支。** Codegen 生成客户端库、服务器存根和文档。一批贡献者将其分叉，创建了 OpenAPI Generator，给出的理由包括“Swagger Codegen 3.0.0 与 Swagger Codegen 2.x 的理念偏离过大”<sup>[2](https://scalar.com/learn/openapi/openapi-vs-swagger)</sup>。

**商业工具。** SmartBear 的商业产品已不止一次更名；其文档目前称之为 Swagger Studio，“前身为 API Hub for Design 或 SwaggerHub”。这是一个托管的 API 生命周期与设计平台，与免费的开源编辑器和渲染器形成对比<sup>[2](https://scalar.com/learn/openapi/openapi-vs-swagger)</sup>。SwaggerHub 在早期就已收录超过 2,000 个 API，并与 GitHub 集成<sup>[15](https://www.infoq.com/news/2016/01/tony-tam-oai-initiative-swagger/)</sup>。

## 实践中的用法

文档生成工具可以根据 OpenAPI 描述渲染 API，代码生成器可以跨多种编程语言生成服务器和客户端，测试工具也可以利用它，此外还有众多其他应用<sup>[4](https://spec.openapis.org/oas/v3.1.2)</sup>。该规范自己的仓库将交互式文档、为文档/客户端/服务器生成代码，以及测试用例自动化列为机器可读定义文档的主要用例<sup>[3](https://github.com/swagger-api/swagger-spec/)</sup>。

**设计优先与代码优先。** 该规范支持两种开发方式：设计优先，即先编写规范再编写代码，是推荐的方法；以及代码优先，即从代码生成规范<sup>[23](https://ceur-ws.org/Vol-4171/paper_10.pdf)</sup>。规范本身不强制任一流程，不要求重写现有 API，也不要求将软件绑定到某项服务；被描述的服务甚至可能不属于其描述文档的创建者<sup>[3](https://github.com/swagger-api/swagger-spec/)</sup>。工具会影响选择：所有基于代码注解的工具都遵循契约后行（contract-last）方式，而 Swagger Editor 和模型驱动工具支持契约先行（contract-first）设计<sup>[17](https://www.scitepress.org/Papers/2020/93812/93812.pdf)</sup>。对代码的静态分析也可以为缺少规范的 API 生成规范<sup>[24](https://dl.acm.org/doi/10.1145/3597503.3639137)</sup>。

**测试。** [契约测试](https://www.edgepedia.org/zh/contract-testing)工具验证实现是否符合规范。这一区别很重要：API 规范定义 API 长什么样，而非功能做什么<sup>[25](https://serard.dev/content/blog/typed-specs-vs-others/06-api-specs.html)</sup>。

## 数据一览

最大的学术语料库 APIstic 合并了从 GitHub 收集的 887,775 份 OpenAPI 规范和来自 SwaggerHub 的 378,275 份，共计 1,266,050 份规范，其中不重复的有 856,259 份<sup>[9](https://design.inf.usi.ch/sites/default/files/biblio/MSR2024-Serbout-Pautasso-APIstic.pdf)</sup>。两个集合均呈现一致的月度增长，且过了三年多，OpenAPI 3.0 规范才超过 Swagger 2.0 规范<sup>[9](https://design.inf.usi.ch/sites/default/files/biblio/MSR2024-Serbout-Pautasso-APIstic.pdf)</sup>。在大多数学术研究中，OpenAPI 3.0 仍是主流版本<sup>[26](https://arxiv.org/pdf/2601.12735)</sup>。

API Evangelist 的一份独立目录收录了来自 6,750 个组织的 14,257 份 OpenAPI 文档，包含 458,875 个操作，发现其追踪的 API 提供方中有 26.2% 采用了该规范<sup>[10](https://reports.apievangelist.com/reports/the-openapi-standard/)</sup>。同一语料库显示了实践中的维护负担：32.8% 的已发布文档没有绝对基础 URL，九年前已被取代的 Swagger 2.0 仍占文档的 9.0%，0.4% 无法解析<sup>[10](https://reports.apievangelist.com/reports/the-openapi-standard/)</sup>。

工具覆盖面很广。swagger-ui npm 包在 5.32.0 版本记录到每周 14.49 万次下载和 166 个依赖者<sup>[12](https://registry.npmjs.org/swagger-ui)</sup>；一家指标聚合器报告 swagger-ui-dist 每月下载 47,639,116 次，npm 和 Packagist 合计每月约 4,980 万次下载，GitHub 仓库有 29,013 个星标和 9,254 个分叉<sup>[27](https://inspect.software/software/swagger-api/swagger-ui)</sup>。调查数据指向同一方向：在 Postman 的《API 现状》报告中，OpenAPI 2.0 和 OpenAPI 3.x 是采用最广泛的规范，使用率为受访者的 39% 至 55%，而 RAML 和 API Blueprint 各为 7%<sup>[16](https://blog.postman.com/raml-and-api-blueprint-where-are-they-now/)</sup>。

## 与替代方案的比较

在更广泛的规范工具家族中，OpenAPI 占据 REST 描述这一生态位：AsyncAPI 覆盖事件驱动和基于消息的 API，Pact 支持微服务边界上的消费者驱动契约测试，GraphQL SDL 描述 GraphQL 模式，gRPC 配合 [Protocol Buffers](https://www.edgepedia.org/zh/protocol-buffers) 提供强类型 RPC<sup>[25](https://serard.dev/content/blog/typed-specs-vs-others/06-api-specs.html)</sup>。

在 REST 描述格式中，OpenAPI 使用最广，RAML 等替代方案远远落后<sup>[23](https://ceur-ws.org/Vol-4171/paper_10.pdf)</sup>。Postman 的调查量化了这一差距：多达 55% 的受访者使用某个版本的 OpenAPI，而 RAML 和 API Blueprint 各为 7%<sup>[16](https://blog.postman.com/raml-and-api-blueprint-where-are-they-now/)</sup>。一个常被提及的原因是治理。Swagger 在 Wordnik 孵化，因此对工具保持中立，而 RAML 和 API Blueprint 由 API 工具厂商开发，早期用户不得不考虑未来的厂商锁定<sup>[16](https://blog.postman.com/raml-and-api-blueprint-where-are-they-now/)</sup>。RAML 的轨迹说明了这一点：当 RAML 的开发者 MuleSoft 加入 Open API 联盟后，RAML 便停止演进，到 OpenAPI 3.0 时，该规范在灵活性和功能上已几乎与 RAML 匹敌<sup>[28](https://www.acronis.com/en/blog/posts/raml-or-oas-swagger-evaluating-the-best-option-for-your-development-needs/)</sup>。

## 评价与批评

从业者对规范优先工作流的体验褒贬不一。在一项关于 REST API 设计与维护的定性研究中，一位参与者描述说，为了让 API 更易使用而采用了 Swagger，随后却听到员工说“Swagger 真是个大麻烦”，成了团队的负担<sup>[29](https://cseweb.ucsd.edu/~mcoblenz/assets/pdf/vlhcc23.pdf)</sup>。对标准的看法总体上也有分歧：在一项针对 REST API 开发者的研究中，只有部分参与者明确说出了他们遵循的指南，而其他人则表示，他们想要遵守的标准已经够多了<sup>[30](https://research.chalmers.se/publication/553278/file/553278_Fulltext.pdf)</sup>。

**2023 年末以来的变化。** 该规范已越过 3.1：补丁版本 3.0.4 和 3.1.1 于 2024 年 10 月发布<sup>[20](https://www.openapis.org/blog/2024/10/25/announcing-openapi-specification-patch-releases)</sup>，3.2.0 于 2025 年 9 月发布，不过在 API Evangelist 语料库测量时，它仅出现在四份文档中<sup>[10](https://reports.apievangelist.com/reports/the-openapi-standard/)</sup>。Swagger 在 Swagger UI、Swagger Client、Swagger Editor 和 ApiDOM 中全面支持 3.2.0，自称是首个做到这一点的开源工具套件，SmartBear 的 Swagger Studio 和 Swagger Portal 也支持<sup>[31](https://swagger.io/blog/swagger-launches-support-for-openapi-3-2-0/)</sup>。在被追踪的提供方中，3.1 的采用率已过半：在 2,287 家 API 提供方中，50.1% 以 OpenAPI 3.1.x 为最新版本发布，41.3% 最新版本仍为 3.0.x，8.3% 仅发布 Swagger 2.0<sup>[11](https://apievangelist.com/2026/10/05/one-in-ten-api-providers-still-publish-swagger/)</sup>。3.1 的转变由较新的公司引领：63.8% 的 AI 公司使用 OpenAPI 3.1 或更高版本，而其他公司为 37.8%<sup>[11](https://apievangelist.com/2026/10/05/one-in-ten-api-providers-still-publish-swagger/)</sup>。该规范的作用也已扩展到机器消费领域：OAS（涵盖 Swagger 2.0 和 OpenAPI 3.0）被描述为描述 REST API 的事实标准，如今支撑着文档、自动化测试、漏洞检测和 LLM 智能体集成框架<sup>[26](https://arxiv.org/pdf/2601.12735)</sup>。

## References

1. [OpenAPI Specification (Swagger) — current specification page, SmartBear](https://swagger.io/specification/)
2. [OpenAPI vs Swagger: what is the difference? (Scalar)](https://scalar.com/learn/openapi/openapi-vs-swagger)
3. [OAI/OpenAPI-Specification, GitHub repository](https://github.com/swagger-api/swagger-spec/)
4. [OpenAPI Specification v3.1.2, OpenAPI Initiative](https://spec.openapis.org/oas/v3.1.2)
5. [New Collaborative Project to Extend Swagger Specification, Linux Foundation press release](https://www.linuxfoundation.org/press/press-release/new-collaborative-project-to-extend-swagger-specification-for-building-connected-applications-and-services)
6. [SmartBear Launches Open API Initiative with Key Industry Leaders including Google, IBM and Microsoft, OpenAPI Initiative](https://www.openapis.org/news/2015/11/05/smartbear-launches-open-api-initiative-with-key-industry-leaders-including-google-ibm-and-microsoft)
7. [OpenAPI Specification — Specification Versions](https://spec.openapis.org/oas/)
8. [Swagger supports OpenAPI 3.1, SmartBear blog](https://swagger.io/blog/swagger-supports-openapi-3-1/)
9. [APIstic: A Large Collection of OpenAPI Metrics, MSR 2024](https://design.inf.usi.ch/sites/default/files/biblio/MSR2024-Serbout-Pautasso-APIstic.pdf)
10. [The OpenAPI Standard, API Evangelist Reports](https://reports.apievangelist.com/reports/the-openapi-standard/)
11. [One In Ten API Providers Still Publish Swagger, API Evangelist](https://apievangelist.com/2026/10/05/one-in-ten-api-providers-still-publish-swagger/)
12. [swagger-ui, npm Registry](https://registry.npmjs.org/swagger-ui)
13. [What's with the Swaggering?, Wordnik blog](https://blog.wordnik.com/whats-with-the-swaggering)
14. [APIs with Swagger: An Interview with Reverb's Tony Tam, InfoQ](https://www.infoq.com/articles/swagger-interview-tony-tam/)
15. [Interview with Tony Tam on the Open API Initiative and Latest Swagger News, InfoQ](https://www.infoq.com/news/2016/01/tony-tam-oai-initiative-swagger/)
16. [RAML and API Blueprint: Where Are They Now?, Postman blog](https://blog.postman.com/raml-and-api-blueprint-where-are-they-now/)
17. [Analysis of Tools for REST Contract Specification in Swagger/OpenAPI, SCITEPRESS 2020](https://www.scitepress.org/Papers/2020/93812/93812.pdf)
18. [Swagger and OpenAPI: History, Versions and Technical Differences, TheBigLearn](https://thebiglearn.org/articles/swagger-openapi-specification-guide)
19. [RESTBERTa: Transformer-based question answering for Web API documentation, Cluster Computing 2023](https://link.springer.com/article/10.1007/s10586-023-04237-x)
20. [Announcing OpenAPI Specification versions 3.0.4 and 3.1.1, OpenAPI Initiative blog](https://www.openapis.org/blog/2024/10/25/announcing-openapi-specification-patch-releases)
21. [feat: OpenAPI 3.1 support, swagger-ui pull request #8367](https://github.com/swagger-api/swagger-ui/pull/8367)
22. [OpenAPI-based REST API testing, arXiv 2024](https://arxiv.org/pdf/2402.05102)
23. [Validating API Design Requirements for Interoperability: A Static Analysis Approach Using OpenAPI, CEUR 2025](https://ceur-ws.org/Vol-4171/paper_10.pdf)
24. [Generating REST API Specifications through Static Analysis, ICSE 2024](https://dl.acm.org/doi/10.1145/3597503.3639137)
25. [Part VI: API Specification — OpenAPI, AsyncAPI, Contract Testing, serard.dev](https://serard.dev/content/blog/typed-specs-vs-others/06-api-specs.html)
26. [OOPS: LLM-based OpenAPI Specification generation, arXiv](https://arxiv.org/pdf/2601.12735)
27. [swagger-api/swagger-ui health index and download metrics, inspect.software](https://inspect.software/software/swagger-api/swagger-ui)
28. [RAML or OAS (Swagger): Evaluating the Best Option for Your Development Needs, Acronis blog](https://www.acronis.com/en/blog/posts/raml-or-oas-swagger-evaluating-the-best-option-for-your-development-needs/)
29. [A Qualitative Study of REST API Design and Maintenance, VL/HCC 2023](https://cseweb.ucsd.edu/~mcoblenz/assets/pdf/vlhcc23.pdf)
30. [Developer Perspectives on REST API Usability: A Study of REST API Guidelines, Chalmers](https://research.chalmers.se/publication/553278/file/553278_Fulltext.pdf)
31. [Swagger launches support for OpenAPI 3.2.0, SmartBear blog](https://swagger.io/blog/swagger-launches-support-for-openapi-3-2-0/)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Development tools and collaboration infrastructure › Frameworks, libraries, and APIs › Web frameworks and libraries

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/swagger-software

English original: https://www.edgepedia.org/swagger-software
