openapi-generators / openapi-generators/openapi-python-client
Getting "Invalid YAML from provided source" error although it worked with Postman and the spec format is JSON
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 2k
- フォーク
- 293
- 平均マージ
- 34分
- マージ済み PR(30日)
- 1
説明
I am trying to generate a client for an OpenAPI JSON file but I am getting an error although Postman was able to generate a endpoints:
"Error(s) encountered while generating, client was not created
Invalid YAML from provided source: mapping values are not allowed in this context"
This is the link to the OpenAPI spec: https://github.com/sourcenetwork/defradb/blob/develop/docs/website/references/http/openapi.json
Desktop (please complete the following information):
- OS: Windows 11
- Python Version: 3.12.5
- openapi-python-client version: 0.21.2
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンクされた openapi.json をダウンロードし、Python 3.12.5 上の openapi-python-client 0.21.2 で失敗を再現してから、ジェネレーターが提供された JSON と YAML をどのように解析するかを調べます。リンクされた仕様が受け入れられ、報告された parsing error なしでクライアント生成が完了すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- openapi, python
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100