Skip to content

docs(openapi): pin BillingType + InventoryItem schema field constraints#290

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

docs(openapi): pin BillingType + InventoryItem schema field constraints#290
CryptoJones merged 1 commit into
masterfrom
docs/openapi-billingtype-inventoryitem-field-constraints

Conversation

@CryptoJones
Copy link
Copy Markdown
Owner

Summary

Extends the field-length / numeric-bound pinning sweep started in #270 (Customer), #272 (Company), and #276 (Worker) to the two remaining single-table entity components.

BillingType:

  • btName: minLength: 1, maxLength: 255 (per zod min(1).max(255))
  • btHourlyRate: minimum: 0 (per zod .nonnegative())

InventoryItem:

  • invitDescription: minLength: 1, maxLength: 1000 (per zod min(1).max(1000))

finite is implicit in OpenAPI's number type per the JSON spec (no NaN / Infinity literal), so no extra annotation needed there.

Test plan

  • npm run lint && npm test — 760 passing.
  • Pure spec metadata; no behavior change.

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

Extends the field-length / numeric-bound pinning sweep started in
#270 (Customer), #272 (Company), and #276 (Worker) to the two
remaining single-table entity components.

  BillingType:
    - btName: minLength: 1, maxLength: 255  (per zod min(1).max(255))
    - btHourlyRate: minimum: 0              (per zod nonnegative())
  InventoryItem:
    - invitDescription: minLength: 1, maxLength: 1000
                                            (per zod min(1).max(1000))

\`finite\` is implicit in OpenAPI's number type per the spec (no
NaN / Infinity in JSON), so no extra annotation is needed there.

SDK generators now carry the bounds into client-side types for
these two entities, matching the rest of the spec. No behavior
change. 760 tests still pass.

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