OpenAPITools / OpenAPITools/openapi-diff
[OpenAPI 3.1.0 support] JsonSchema type changes not handled.
未关闭
还没有人认领这个 Issue。
OpenAP 3.1.0 Support
- 主要语言
- Java
- 星标
- 1.1k
- 派生
- 190
- PR 合并指标
- 30 天内没有已合并 PR
描述
While migration to OpenAPI 3.1.0 all Schema objects becomes JsonSchema. 3.1.0 deserializes schema "type" to array field "types". At least this part of SchemaDiff works incorrectly: SchemaDiff.java#L349-L352. Most probably such changes will affect other parts of library.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先阅读 core/src/main/java/org/openapitools/openapidiff/core/compare/SchemaDiff.java 第349-352行附近的内容,然后跟踪受 OpenAPI 3.1.0 将 type 反序列化为 types 影响的其他 schema 比较路径。完成标准是:schema diff 在所有受影响的比较路径中正确处理 JsonSchema 类型变更。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, openapi
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100