知识卡片
Fern作为生成器前端
Fern 用另一种 YAML 格式表达 REST 契约,从同一输入生成 SDK、服务端桩、Postman 集合及 OpenAPI。格式为生成器收紧部分含混类型表达,目标是让各语言的生成接口更贴合惯例。团队评估时要同时考虑生成质量与既有 OpenAPI 链路的互通。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- API 制品的构建与配置部署 9.3 Build stage: Generating and storing SDKs · 查看原书依据
In this example, you generated your SDK from an OpenAPI definition. But there are alternatives. Fern (https://buildwithfern.com) is an open source toolkit for building REST APIs, and the Fern API definition format is an alternative to the OpenAPI definition format.
参考来源
- 位置:《Automating API Delivery APIOps with OpenAPI》《第 09 章 API 制品的构建与配置部署》(9.3 Build stage: Generating and storing SDKs;来源项目 book-source,extracted/Automating API Delivery APIOps with OpenAPI/_epub-src/OEBPS/Text/chapter-9.xhtml#p146)
- 结论依据:原文介绍 Fern 的 YAML 模型、生成器输出及其代码生成目的。
- 原始内容:In this example, you generated your SDK from an OpenAPI definition. But there are alternatives. Fern (https://buildwithfern.com) is an open source toolkit for building REST APIs, and the Fern API definition format is an alternative to the OpenAPI definition format.