← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 2313.e.5.f.10.b.3.i.2.e.1.b.2 · 生成模型:未记录

按消费者生成契约视图

理解等级:中级

在 CI 中从同一审查通过的源定义生成面向具体消费者的契约。可打包一套多文件定义,按发布标记筛选内部对象,清除无用组件,设置公开沙箱地址,再对成品运行 lint。设计流水线时列出每个制品的用户、用途、源文件、工具及去处,避免下游拿错视图。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Automating API Delivery APIOps with OpenAPI》《第 09 章 API 制品的构建与配置部署》(9.1 Build stage: Transforming API definition files;来源项目 book-source,extracted/Automating API Delivery APIOps with OpenAPI/_epub-src/OEBPS/Text/chapter-9.xhtml#p26) - 结论依据:原文将发布前的过滤、改写、打包归为可自动执行的变换。 - 原始内容:I call these changes to the API definition file transformations. Regardless of the exact kind of transformation you make, you want to apply it in an automated way in your deployment pipeline to make the API definition suitable for external publishing or for a particular user of the API definition file.