refactor(openapi): derive the http code family from the status table

The catalogue listed the status defaults a second time by hand. It now
reads them from DEFAULT_ERROR_CODES, the table the handler applies.
This commit is contained in:
Marc-André Bombeck committed 2026-10-20 09:39:50 +02:00
1 parent c145843aa3
commit 0057b03699
2 files changed
+7 -21

No files matched your search

@@ -322,8 +322,8 @@ describe("GET /api/insights/targets — mood-rollup tier swap", () => {
});
it("reads latest-ever-per-type one index probe per type, floored at one year", async () => {
// Audit High finding 3 established the 365-day floor. The read is the
// shared `readLatestEver`: driven from the type list, one LIMIT 1 probe
// The read is floored at 365 days. It is the shared `readLatestEver`:
// driven from the type list, one LIMIT 1 probe
// per type, so a dense type never sorts a year of raw rows to keep one.
await callGet(makeReq());