From f3df4464a7688e5aee408e5ec68da87eec759d65 Mon Sep 17 00:00:00 2001 From: "Aaron K. Clark" Date: Tue, 19 May 2026 10:17:36 -0500 Subject: [PATCH] docs(openapi): declare Idempotency-Replay on POST /v1/versioninfo 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/versioninfo. Same pattern as the prior 11 entities. No behavior change — pure spec metadata. 760 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 eec4e13..4ef404c 100644 --- a/app/config/openapi.js +++ b/app/config/openapi.js @@ -1095,7 +1095,14 @@ const spec = { security: [{ authKey: [] }], parameters: [idempotencyKeyHeader], requestBody: { required: true, content: { 'application/json': { schema: { $ref: '#/components/schemas/VersionInfo' } } } }, - responses: { 201: { description: 'Created' }, 400: { description: 'Bad request' }, 403: { description: 'Non-master key' } }, + responses: { + 201: { + description: 'Created', + headers: idempotencyReplayResponseHeader, + }, + 400: { description: 'Bad request' }, + 403: { description: 'Non-master key' }, + }, }, get: { summary: 'List version info (any authKey)',