fix(openapi): declare the body-cap 413 and the outbound-screen 502 of a briefing generation

Both have always been answered; neither was declared. The parity walk now
checks them against the contract instead of skipping it.
This commit is contained in:
Marc-André Bombeck committed 2026-10-23 15:53:59 +02:00
1 parent 31048e5e63
commit 18ff14ba1a
3 files changed
+24 -12

No files matched your search

@@ -745,11 +745,7 @@ describe("POST /api/insights/generate parity", () => {
it("P03 a body over the cap", async () => {
await resetBriefing(OWNER_ID);
await post(
"P03-body-too-large",
{ pad: "x".repeat(17 * 1024) },
{ undeclared: "the body cap answers 413, which the contract omits" },
);
await post("P03-body-too-large", { pad: "x".repeat(17 * 1024) });
});
it("P04 a cached briefing written today", async () => {
@@ -984,13 +980,7 @@ describe("POST /api/insights/generate parity", () => {
"Your 10-year cardiovascular risk is elevated — consider stepping your dose up.",
}),
});
await post(
"P29-outbound-screened",
{ force: true },
{
undeclared: "the outbound screen answers 502, which the contract omits",
},
);
await post("P29-outbound-screened", { force: true });
});
it("P30 the about-me text changing during the generation", async () => {