Azure / Azure/data-api-builder

[Bug]: Config file does not throw error at multiple entities with same definition name

Open
#3,463 1 comment 0 reactions 0 assignees View on GitHub
bug triage
Dominant language
C#
Stars
1.5k
Forks
370
Avg merge
3d 17h
Merged PRs (30d)
8

Description

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

Image

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.