Azure / Azure/data-api-builder
[Bug]: `dab init --auth.provider` invalid command succeeds when it should fail
- Lingua principale
- C#
- Stelle
- 1.5k
- Fork
- 370
- Merge medio
- 3g 22h
- PR unite (30g)
- 9
Descrizione
### 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Riproduci il problema con il comando fornito `dab init --config test-config.json --auth.provider Entr` e ispeziona l’entry point della CLI che gestisce le opzioni di `dab init`. Traccia il modo in cui i valori di `auth.provider` vengono verificati rispetto alle opzioni enum consentite. Il lavoro è completato quando un valore non valido fa fallire il comando e non viene serializzato nel file di configurazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 58/100