Azure / Azure/data-api-builder

[Bug]: `dab init --auth.provider` invalid command succeeds when it should fail

オープン
#3,437 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug cli triage
主要言語
C#
スター
1.5k
フォーク
370
平均マージ
3日 22時間
マージ済み PR(30日)
9

説明

### What happened?

Using `dab init --auth.provider` with a value that is not part of the allowed enum options works should cause the command to fail, however, it is succeeding and serializing the wrong value to the config file.

Command used that caused failure is `dab init --config test-config.json --auth.provider Entr --database-type mssql --auth.audience http://testing.com --auth.issuer https://testing.issuer.com`

### Version

2.0.0-rc

### What database are you using?

Azure SQL

### What hosting model are you using?

Local (including CLI)

### Which API approach are you accessing DAB through?

_No response_

### Relevant log output

```Text

```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

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

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

調査の方向性

提供されたコマンド `dab init --config test-config.json --auth.provider Entr` で問題を再現し、`dab init` のオプションを処理する CLI エントリポイントを調査してください。`auth.provider` の値が許可された enum オプションに対してどのように検証されているかを追跡してください。無効な値によってコマンドが失敗し、設定ファイルにシリアライズされないことを確認できれば完了です。

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

評価

技術スタック
csharp
領域
cli
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
58/100

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

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