openapi-generators / openapi-generators/openapi-python-client
use key not title for class name
未关闭
还没有人认领这个 Issue。
🐞bug
- 主要语言
- Python
- 星标
- 2k
- 派生
- 293
- 平均合并
- 34 分钟
- 30 天内合并 PR
- 1
描述
in components -> schemas

here i have erros:
Unable to parse schema /components/schemas/HRVSample
Unable to parse this part of your OpenAPI document: : Attempted to generate duplicate models with name "Sample"
why used the title for class names and not the key. The key is always unique, but the title is not necessarily unique.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 HRVSample 的 OpenAPI components/schemas 条目开始,跟踪客户端生成器如何根据其键和标题派生模型类名。当具有不同键但标题相同的 schemas 能生成不同模型,且不会出现 issue 中所示的重复模型错误时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- openapi, python
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100