openapi-generators / openapi-generators/openapi-python-client
Auto generated use of the client with context manager is wrong
オープン
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 2k
- フォーク
- 293
- 平均マージ
- 34分
- マージ済み PR(30日)
- 1
説明
There should be a new instance every time we use the with statement. because if not the next time you use the client you'll get "Cannot reopen a client instance, once it has been closed."
Like in this example you should write in the docs:
with Client(base_url="Somthing") as client:
and not:
with client as client:
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Issueにはリポジトリのファイルもテストも記載されていないため、まず生成されたClientのコンテキストマネージャー用テンプレートとドキュメントの例を見つけ、リンク先のHTTPXの例と比較します。生成された使用例とドキュメントが、それぞれのwith文に対して新しいクライアントを一貫して示し、関連する回帰チェックが通れば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- api, documentation
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100