Skip to content

docs(openapi): declare POST /v1/timeentry 201 envelope shape (#326)#327

Merged
CryptoJones merged 1 commit into
masterfrom
docs/openapi-timeentry-post-response-shape
May 19, 2026
Merged

docs(openapi): declare POST /v1/timeentry 201 envelope shape (#326)#327
CryptoJones merged 1 commit into
masterfrom
docs/openapi-timeentry-post-response-shape

Conversation

@CryptoJones
Copy link
Copy Markdown
Owner

Closes #326.

Summary

Parallel to #316 (customer POST). The timeentry POST 201 had no content schema at all. Declare the {message, timeEntry} envelope and pin with a test.

Test plan

  • npm run lint && npm test — 783 passing (was 782).

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

Parallel to #316 (customer POST envelope fix). The timeentry POST
201 had a description and the `Idempotency-Replay` header
declaration but NO content schema at all — strictly worse than the
customer case before #316, where the body was at least declared
(wrongly) as a bare entity. SDK code-gen here couldn't reach the
row inside the envelope from generated client types because the
body shape was completely unspecified.

The controller emits `{message, timeEntry}`. Pin that envelope
in the spec and add a corresponding test in
`tests/api/openapi.test.js` so a regression on either side fails
CI.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@CryptoJones CryptoJones merged commit a659f75 into master May 19, 2026
3 checks passed
@CryptoJones CryptoJones deleted the docs/openapi-timeentry-post-response-shape branch May 19, 2026 18:12
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.

OpenAPI: POST /v1/timeentry 201 has no content schema at all

1 participant