mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 21:32:18 +00:00
The /api/measurements per-day drill-down branch clamped `limit` to `Math.min(limit, 1000)` after the request reached the route. Callers asking for more saw no response signal — the schema-declared 5000 ceiling silently capped at 1000. Move the cap into the validator's .refine on (limit, dayKey) so the boundary returns 422 with an actionable message. The route now reads `limit` straight through because the validator has already clamped it.