Failure to process schema has resulted in the removal
还没有人认领这个 Issue。
评估
调研方向
首先,使用 openapi-python-client 0.24.3 和附带的 openapi.json 复现该失败。跟踪 /components/schemas/Finding 和重复的 FindingAttribution 模型的处理过程。完成的标准是:在不删除 Finding 的情况下处理该 schema,并将 GET /v1/finding response 包含在生成的 client 中。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
When creating the client from a schema, it fails with the following message:
WARNING parsing GET /v1/finding within finding.
Cannot parse response for status code 200 (Could not find reference in parsed models or enums), response will be omitted from generated client
Reference(ref='#/components/schemas/Finding')
Unable to process schema /components/schemas/Finding:
Attempted to generate duplicate models with name "FindingAttribution"
Failure to process schema has resulted in the removal of:
/components/schemas/Finding
OpenAPI Spec File
Desktop (please complete the following information):
- OS: macOS 15.4.1]
- Python Version: 3.13.2
- openapi-python-client version: 0.24.3
- 主要语言
- Python
- 星标
- 2k
- 派生
- 293
- 平均合并
- 34 分钟
- 30 天内合并 PR
- 1
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
openapi-generators/openapi-python-client 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 3/5 1-2 天 新手友好度 72/100
openapi-generators/openapi-python-client#1451 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 52/100
-
难度 3/5 1-2 天 新手友好度 64/100
openapi-generators/openapi-python-client#1435 · 1 条评论 ·
查看 openapi-generators/openapi-python-client 的全部 Issue
相似的 Issue
-
fix: inaccuracy ⚠️
难度 2/5 1-3 小时 新手友好度 72/100
uabrc/uabrc.github.io#1255 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
ethereum-optimism/factory#64 ·
-
难度 2/5 1-3 小时 新手友好度 90/100
duckdb/duckdb-python#627 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
-
documentation
难度 1/5 1 小时以内 新手友好度 78/100
Qiskit/qiskit-addon-sqd#376 ·