fix(openapi): publish the sharing refusal on the prognosis read

Every delegable operation states, in the contract, that it can refuse a
delegate — and the guard over the document caught this one publishing
only its module gate. One status, two reasons: the module gate's own
sentence first, the shared refusal spliced on the end, which is the
shape every other gated delegable route already uses.
This commit is contained in:
Marc-André Bombeck committed 2026-08-08 12:30:13 +02:00
1 parent d45cedcf5d
commit 09bf0a1947
2 files changed
+6

No files matched your search

+1
View File
@@ -8377,6 +8377,7 @@ paths:
schema:
$ref: "#/components/schemas/MoodPrognosisEnvelope"
"401": *a1
"403": *a7
"422": *a3
"429": *a4
/api/mood-entries/bulk:
+5
View File
@@ -35,7 +35,9 @@ import {
import {
dataEnvelope,
errorEnvelope,
recordRefusal,
stdResponses,
MODULE_DISABLED_DESCRIPTION,
baseUpdatedAtField,
updatedAtTokenField,
conflictResponse409,
@@ -510,6 +512,9 @@ export const moodPaths: NonNullable<ZodOpenApiObject["paths"]> = {
},
},
},
// Two reasons, one status: the module gate and the sharing fence both
// answer 403, and OpenAPI allows one response per status.
...recordRefusal(MODULE_DISABLED_DESCRIPTION),
...stdResponses,
},
},