Skip to content

docs(openapi): pin Job schema jobDesc length to match the validator#294

Merged
CryptoJones merged 1 commit into
masterfrom
docs/openapi-job-invoice-field-constraints
May 19, 2026
Merged

docs(openapi): pin Job schema jobDesc length to match the validator#294
CryptoJones merged 1 commit into
masterfrom
docs/openapi-job-invoice-field-constraints

Conversation

@CryptoJones
Copy link
Copy Markdown
Owner

Summary

Extends the field-length pinning sweep (Customer #270, Company #272, Worker #276, BillingType+InventoryItem #290) to the Job component.

jobDesc is validated by zod as z.string().min(1).max(10000). Pinning the same bounds in the OpenAPI spec lets SDK generators (openapi-typescript et al.) carry the constraint into client types.

Invoice's component is exclusively boolean/integer/date fields with no free-text columns, so no constraint additions are needed there.

Test plan

  • npm run lint && npm test — 761 passing.

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

Extends the field-length pinning sweep (Customer/Company/Worker/
BillingType/InventoryItem) to the Job component. \`jobDesc\` is
validated by zod as \`z.string().min(1).max(10000)\`; pinning the
same bounds in the OpenAPI spec lets SDK generators carry the
constraint into client types.

Invoice's component is exclusively boolean/integer/date fields with
no free-text columns, so no constraint additions are needed there.

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

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@CryptoJones CryptoJones merged commit be8c2aa into master May 19, 2026
3 checks passed
@CryptoJones CryptoJones deleted the docs/openapi-job-invoice-field-constraints branch May 19, 2026 16:24
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