allOf : `type` of property contained in multiple subschemas is not correctly determined.
還沒有人認領這個 Issue。
評估
研究方向
首先重現所提供的 V1 和 V2 schema 之間的比較,重點關注 Foo、allOf 以及重複的 propA 定義。檢查 diff 如何在所有 allOf 子 schema 中判定 propA 的型別。完成的標準是:對於此案例,比較結果不再回報從 object 到 string 的不相容型別變更。
由索引模型根據 Issue 內容生成。
描述
Given the following schema V1:
Foo:
allOf:
- properties:
propA:
type: string
- properties:
propA:
example: "YEEHAA"
is changed to the following schema V2:
Foo:
properties:
propA:
type: string
openapi-diff incorrectly detects the following incompatible change:
Changed property type (object -> string)
It seems to me that the type of a property that is contained in multiple subschemas of an allOf is not correctly determined. Openapi-diff recognized the type of propA in schema V1 as an object, but this is not correct.
- 主要語言
- Java
- 星號
- 1.1k
- 分支
- 190
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
OpenAPITools/openapi-diff 的其他 Issue
-
enhancement
難度 2/5 1-3 小時 新手友好度 68/100
OpenAPITools/openapi-diff#506 ·
-
good first issue help wanted
難度 2/5 1-3 小時 新手友好度 68/100
OpenAPITools/openapi-diff#364 ·
-
bug OpenAP 3.1.0 Support
難度 3/5 1-2 天 新手友好度 68/100
OpenAPITools/openapi-diff#910 · 1 則留言 ·
-
Render capabilities
難度 3/5 1-2 天 新手友好度 55/100
OpenAPITools/openapi-diff#893 · 1 則留言 ·
-
[Bug] Backward compatibility check fails on reordered discriminator mappings可能已有人在做 @MoChiUaena 於 13 天前認領。 未關閉Breaking/Non-Breaking classification
難度 3/5 1-2 天 新手友好度 55/100
OpenAPITools/openapi-diff#886 ·
查看 OpenAPITools/openapi-diff 的全部 Issue
相似的 Issue
-
`Processing lsp` never exits and leaves orphaned processes可能已有人在做 @overcast302 今天認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 72/100
processing/processing4#1578 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 60/100
維護者通常 1 天內回覆
-
[BUG] S3 CORS responses omit Access-Control-Allow-Credentials for matched origins可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
securityHeaders replaces a route's own Content-Security-Policy (0.9.9; weakens embedders' pages)未關閉bug
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
sqlcipher/sqlcipher-android#97 · 1 則留言 ·