Azure / Azure/data-api-builder
[Bug]: `first=501` accepted despite schema max=500
Open
2.x
health-endpoint
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 370
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 8
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.