Azure / Azure/data-api-builder
[Bug]: `dab init --auth.provider` invalid command succeeds when it should fail
- Langage dominant
- C#
- Étoiles
- 1.5k
- Forks
- 372
- Merge moyen
- 3 j 22 h
- PR mergées (30 j)
- 9
Description
### 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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Reproduisez le problème avec la commande fournie `dab init --config test-config.json --auth.provider Entr` et examinez le point d’entrée de la CLI qui gère les options de `dab init`. Suivez la manière dont les valeurs de `auth.provider` sont vérifiées par rapport aux options d’énumération autorisées. Le travail est terminé lorsqu’une valeur non valide entraîne l’échec de la commande et n’est pas sérialisée dans le fichier de configuration.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- csharp
- Domaine
- cli
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 58/100