Skip to content

fix: regenerate create-sales-order.json (stale since #32) - #54

Open
azaczek wants to merge 1 commit into
commerce-operations-foundation:developfrom
azaczek:fix/create-sales-order-json-schema-drift
Open

azaczek wants to merge 1 commit into
commerce-operations-foundation:developfrom
azaczek:fix/create-sales-order-json-schema-drift

Conversation

@azaczek

@azaczek azaczek commented Jul 7, 2026

Copy link
Copy Markdown

What

Regenerates schemas/tool-inputs/create-sales-order.json from its current Zod source.

Why

#32 fixed the nested order.customer field in create-sales-order.ts (omitting server-generated createdAt/updatedAt/tenantId) but never regenerated the JSON Schema output, so the committed file still reflected the pre-fix shape — requiring fields a client can't know. Found this while testing an unrelated schema fix (#53 ) — running the generator picked up this stale output too.

How

Ran npm run generate:json-schemas with no source changes; diff is limited to the customer field losing the 3 server-generated fields from its properties/required.

Testing

  • npm run typecheck — clean
  • npm run lint — 0 errors
  • npm test — 224/224 passing

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