From 71babd4ad221f0a564d54d2c830fe449921d44df Mon Sep 17 00:00:00 2001 From: "Aaron K. Clark" Date: Tue, 19 May 2026 08:26:29 -0500 Subject: [PATCH] docs(openapi): declare Idempotency-Replay on POST /v1/job 201 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Part of #245 — single-create POST OpenAPI Idempotency-Replay sweep. Adds Idempotency-Replay response-header declaration to the 201 response on POST /v1/job. Same pattern as customer / timeentry / worker / billingtype / inventoryitem / company already shipped. No behavior change — pure spec metadata. 688 tests still pass. Co-Authored-By: Claude Opus 4.7 (1M context) --- app/config/openapi.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/config/openapi.js b/app/config/openapi.js index 14e0037..0dd7c37 100644 --- a/app/config/openapi.js +++ b/app/config/openapi.js @@ -915,7 +915,14 @@ const spec = { security: [{ authKey: [] }], parameters: [idempotencyKeyHeader], requestBody: { required: true, content: { 'application/json': { schema: { $ref: '#/components/schemas/Job' } } } }, - responses: { 201: { description: 'Created' }, 400: { description: 'Bad request' }, 403: { description: 'Auth failure' } }, + responses: { + 201: { + description: 'Created', + headers: idempotencyReplayResponseHeader, + }, + 400: { description: 'Bad request' }, + 403: { description: 'Auth failure' }, + }, }, }, '/v1/job/{id}': {