Skip to content

docs(openapi): declare Idempotency-Replay on POST /v1/inventoryitem 201#255

Merged
CryptoJones merged 1 commit into
masterfrom
docs/openapi-inventoryitem-post-idempotency-replay-header
May 19, 2026
Merged

docs(openapi): declare Idempotency-Replay on POST /v1/inventoryitem 201#255
CryptoJones merged 1 commit into
masterfrom
docs/openapi-inventoryitem-post-idempotency-replay-header

Conversation

@CryptoJones
Copy link
Copy Markdown
Owner

Part of #245 — single-create POST OpenAPI Idempotency-Replay sweep.

Summary

  • Adds Idempotency-Replay response-header declaration to the 201 response on POST /v1/inventoryitem
  • Same pattern as customer/timeentry/worker/billingtype already shipped

Why

The Idempotency-Key middleware applies to every /v1/* POST, but until now only the bulk endpoints (and four single-create endpoints) declared the Idempotency-Replay response header on their 201. SDK generators (openapi-typescript, etc.) couldn't see the replay flag for inventoryitem creates without this declaration.

Test plan

  • npm run lint && npm test locally — 688 passing, no regressions
  • Pure spec metadata; no behavior change

Proudly Made in Nebraska. Go Big Red! 🌽 https://xkcd.com/2347/

Continuation of the single-create POST sweep (tracking #245). The
Idempotency-Key middleware already applies to /v1/inventoryitem POSTs,
but the response-header declaration was missing from the 201 — so
SDK generators couldn't surface the replay flag for non-bulk
inventoryitem creates. Adds `headers: idempotencyReplayResponseHeader`
to the 201 response, matching the pattern previously applied to
customer/timeentry/worker/billingtype POSTs.

No behavior change — pure spec metadata. All 688 tests still pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@CryptoJones CryptoJones merged commit 79e60a4 into master May 19, 2026
3 checks passed
@CryptoJones CryptoJones deleted the docs/openapi-inventoryitem-post-idempotency-replay-header branch May 19, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant