Azure / Azure/data-api-builder

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

Abierto
#3,437 0 comentarios 0 reacciones 0 asignados Ver en GitHub
bug cli triage
Lenguaje dominante
C#
Estrellas
1.5k
Forks
370
Merge medio
3 d 22 h
PR fusionados (30 d)
9

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Reproduzca el problema con el comando proporcionado `dab init --config test-config.json --auth.provider Entr` e inspeccione el punto de entrada de la CLI que gestiona las opciones de `dab init`. Siga cómo se comprueban los valores de `auth.provider` frente a las opciones de enum permitidas. Se considera terminado cuando un valor no válido hace que el comando falle y no se serialice en el archivo de configuración.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
csharp
Área
cli
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
58/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.