openapi-generators / openapi-generators/openapi-python-client
Failure to process schema has resulted in the removal
未关闭
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 2k
- 派生
- 293
- 平均合并
- 34 分钟
- 30 天内合并 PR
- 1
描述
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,使用 openapi-python-client 0.24.3 和附带的 openapi.json 复现该失败。跟踪 /components/schemas/Finding 和重复的 FindingAttribution 模型的处理过程。完成的标准是:在不删除 Finding 的情况下处理该 schema,并将 GET /v1/finding response 包含在生成的 client 中。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- openapi, python
- 领域
- api, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100