Azure / Azure/data-api-builder

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

オープン
#3,463 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug triage
主要言語
C#
スター
1.5k
フォーク
370
平均マージ
3日 22時間
マージ済み PR(30日)
9

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、エンティティ定義名が重複している設定を再現し、`dab validate` を実行します。設定のデシリアライズとバリデーションを追跡して、重複したエンティティがどこで破棄されるのかを特定し、その後、バリデーションでエラーまたは警告が報告されるようにして、重複した定義がサイレントにバリデーションを通過しなくなったことを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, csharp, sql
領域
backend, cli, databases
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。