parameter from the `components/parameters` section makes openapi-python-client crash
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 38/100
調査の方向性
まず、添付された openapi.json でクラッシュを再現し、コンポーネントパラメーターの定義と併せて output.log を確認します。参照されているパラメーターを処理するジェネレーターのパスを追跡し、その後、同じ仕様から内部エラーなしでクライアントが生成されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 2k
- フォーク
- 293
- 平均マージ
- 34分
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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
-
essnmx good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
[Feature] 奇物选择添加优先级 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
syfoud/Simulated_Scepter#174 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Giskard-AI/giskard-oss#2840 · コメント 1 件 ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success オープンarea: repo bug perceived difficulty: 2
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
yeti-platform/yeti#1380 ·