openapi-generators / openapi-generators/openapi-python-client
parameter from the `components/parameters` section makes openapi-python-client crash
未关闭
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 2k
- 派生
- 293
- 平均合并
- 34 分钟
- 30 天内合并 PR
- 1
描述
Describe the bug
While generating a client for my openapi.json file, the script crashes with internal errors.
The problem seems to be related to a parameter defined in my component/parameters section. When i comment out this part of my openapi spec. The client can be generated without errors.
"components": {
"parameters": {
"macAddress": {
"name": "macAddress",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/MacAddress"
},
"description": "The MAC address of the dongle.\n"
}
}
}
OpenAPI Spec File.
Desktop (please complete the following information):
- OS: Ubuntu 24.04.1 LTS
- Python Version: 3.12.3
- openapi-python-client version: 0.22.0
Additional context
The full output of the crash output.log.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,使用附加的 openapi.json 重现崩溃,并结合组件参数定义检查 output.log。跟踪生成器处理被引用参数的路径,然后确认同一份规范能够生成客户端且没有内部错误。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- openapi, python
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100