Skip to content

docs(openapi): declare Idempotency-Replay on POST /v1/company 201#259

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

docs(openapi): declare Idempotency-Replay on POST /v1/company 201#259
CryptoJones merged 1 commit into
masterfrom
docs/openapi-company-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/company
  • Same pattern as customer / timeentry / worker / billingtype / inventoryitem already shipped

Why

The Idempotency-Key middleware applies to every /v1/* POST, but only some of the single-create endpoints declared the Idempotency-Replay response header on their 201. SDK generators (openapi-typescript, etc.) couldn't see the replay flag for company 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/

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

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

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

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@CryptoJones CryptoJones merged commit b1f7cac into master May 19, 2026
3 checks passed
@CryptoJones CryptoJones deleted the docs/openapi-company-post-idempotency-replay-header branch May 19, 2026 13:13
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