danielgtaylor / danielgtaylor/openapi-cli-generator

Server Variables

オープン
#3 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
feature
主要言語
Go
スター
218
フォーク
54
PR マージ指標
30日以内にマージされた PR はありません

説明

Currently, [OpenAPI 3 server variables](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#serverVariableObject) are not handled at all. They are required to have defaults, so at the very least we should string replace the template values with the defaults.

A better implementation would also expose these as optional parameters for the generated CLI. One complication is that different servers might have different variables, so the ones that get exposed might depend on the current server index.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず、生成されたCLIがサーバーを選択し、OpenAPI 3のサーバー定義を読み取る仕組みを追跡します。最初に必要なデフォルト値を確認し、その後、目的がテンプレート置換だけなのか、サーバー固有のオプションCLIパラメーターも含むのかを判断します。選択されたサーバーのサーバー変数が一貫して処理され、意図した動作がテストでカバーされていれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
go, openapi
領域
api, cli, tooling
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。