OpenAPITools / OpenAPITools/openapi-diff
Show additions / changes to schema body
未关闭
还没有人认领这个 Issue。
enhancement
- 主要语言
- Java
- 星标
- 1.1k
- 派生
- 190
- PR 合并指标
- 30 天内没有已合并 PR
描述
Is it possible to show non-breaking changes (i.e. added fields) to the schema body?
The current output simply states "changed body: 'application/json'"
If I reverse the comparison I get a message:
Changed body: 'application/json'
Missing property: [n].id (integer)
So a useful message would be:
Changed body: 'application/json'
Added property: [n].id (integer)

贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先复现 issue 中描述的 OpenAPI 比较,包括反向比较,并追踪 schema-body 更改在哪里进行格式化。更新 reporting 路径,使其区分新增属性和缺失属性,然后验证输出中是否包含类似 [n].id (integer) 的“Added property”条目,并显示在 body 已更改的消息旁边。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- api
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100