Azure / Azure/data-api-builder
[Bug]: `first=501` accepted despite schema max=500
- 主要言語
- C#
- スター
- 1.5k
- フォーク
- 370
- 平均マージ
- 3日 22時間
- マージ済み PR(30日)
- 9
説明
The schema defines `entity.health.first` with `min: 1, max: 500`, and DAB correctly rejects `first=0` with `"Invalid value for first: 0. Value must be greater than 0."` However, `first=501` is accepted without error.
## Expected
DAB should reject `first=501` at config deserialization with a message like `"Invalid value for first: 501. Value must be at most 500."`
## Actual
DAB starts normally and runs health checks with `first=501`. The query becomes `SELECT TOP 502 ...`, which works but exceeds the documented maximum.
コントリビューションガイド
調査の方向性
Start by reproducing configuration deserialization with entity.health.first set to 0 and 501, comparing the existing lower-bound rejection with the missing upper-bound rejection. Trace the health configuration validation path and its tests, if present. Done means first=501 is rejected with an at-most-500 message and valid values still start health checks normally.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp
- 領域
- api
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 68/100