OpenAPITools / OpenAPITools/openapi-diff

Operations are detected as changed when comparing for open api version 3.0.1 and 3.1.0

未关闭
#858 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

OpenAP 3.1.0 Support
主要语言
Java
星标
1.1k
派生
190
PR 合并指标
30 天内没有已合并 PR

描述

By comparing the two definitions attached the only difference is the open api version (3.0.1 against 3.1.0)

sample-api_3.47.0_ALL.json
sample-api_3.48.0_ALL.json

The operations are detected as changed and only repeat the parameters e.g. query, sort request parameters in one case, path parameters in the others) while nothing has changed in the operations.

testDiff.html

If we change the open api version in one definition to match the other, no changes are detected as expected

Report was generated by using the example code in home page by specifying rendering all changes i.e.
HtmlRender htmlRender = new HtmlRender("Changelog", "http://deepoove.com/swagger-diff/stylesheets/demo.css", true);

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从附带的两个 OpenAPI JSON 定义开始,并使用 homepage 示例重现报告,同时将 HtmlRender 配置为渲染所有更改。比较仅 OpenAPI 版本发生变化时的操作和参数差异输出。当仅版本发生变化的比较不报告任何操作或参数更改时,即表示完成,如 testDiff.html 所示。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
api
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。