Azure / Azure/data-api-builder
[Bug]: Config file does not throw error at multiple entities with same definition name
- Lingua principale
- C#
- Stelle
- 1.5k
- Fork
- 370
- Merge medio
- 3g 17h
- PR unite (30g)
- 8
Descrizione
### What happened?
Currently we can add multiple entities that have the same definition name under the `entities` property. Only one of these entities will be used, the others are discarded while the deserialization takes place. This means that DAB never throws an error or a warning regarding these repeated entities, and when we use the `dab validate` command the validation succeeds.
### 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
Inizia riproducendo la configurazione con nomi di definizioni di entità duplicati ed eseguendo `dab validate`. Traccia la deserializzazione e la validazione della configurazione per determinare dove vengono scartate le entità ripetute, quindi fai in modo che la validazione segnali un errore o un avviso e verifica che le definizioni duplicate non vengano più validate silenziosamente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- azure, csharp, sql
- Ambito
- backend, cli, databases
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 55/100