openapi-generators / openapi-generators/openapi-python-client
Failure to process schema has resulted in the removal
オープン
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 2k
- フォーク
- 293
- 平均マージ
- 34分
- マージ済み PR(30日)
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、添付された openapi.json を openapi-python-client 0.24.3 で使用して失敗を再現します。/components/schemas/Finding と重複した FindingAttribution モデルの処理を追跡します。スキーマが Finding を削除せずに処理され、GET /v1/finding のレスポンスが生成されたクライアントに含まれていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- openapi, python
- 領域
- api, tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100