Azure / Azure/data-api-builder

[Bug]: `first=501` accepted despite schema max=500

Aperta
#3,569 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
2.x health-endpoint
Lingua principale
C#
Stelle
1.5k
Fork
370
Merge medio
3g 22h
PR unite (30g)
9

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
api
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Specificata chiaramente
Idoneità per principianti
68/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.