Azure / Azure/data-api-builder

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

Offen
#3,437 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug cli triage
Vorherrschende Sprache
C#
Sterne
1.5k
Forks
370
Ø Merge
3 T. 22 Std.
Gemergte PRs (30 T.)
9

Beschreibung

### 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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Reproduzieren Sie das Problem mit dem bereitgestellten Befehl `dab init --config test-config.json --auth.provider Entr` und untersuchen Sie den CLI-Einstiegspunkt, der die Optionen von `dab init` verarbeitet. Verfolgen Sie, wie `auth.provider`-Werte gegen die zulässigen Enum-Optionen geprüft werden. Als erledigt gilt dies, wenn ein ungültiger Wert dazu führt, dass der Befehl fehlschlägt und nicht in die Konfigurationsdatei serialisiert wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
csharp
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
58/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.