Skip to content

fix: add missing tool-input JSON schema#33

Merged
AJITHMELVIN merged 1 commit into
developfrom
fix/missing-schemas
Mar 18, 2026
Merged

fix: add missing tool-input JSON schema#33
AJITHMELVIN merged 1 commit into
developfrom
fix/missing-schemas

Conversation

@GrayWandererr

Copy link
Copy Markdown
Contributor

The schemas/tool-inputs/ directory had JSON Schema files for 9 of the 12 onX
tool inputs. Three were missing because they were not wired into the generator:

  • create-return.json
  • get-returns.json
  • get-product-variants.json

Changes

  • server/src/schemas/utils/generate-schemas.ts: Added 3 imports and 3 entries
    to schemaDefinitions
  • schemas/tool-inputs/create-return.json: Generated
  • schemas/tool-inputs/get-returns.json: Generated
  • schemas/tool-inputs/get-product-variants.json: Generated

Testing

Ran the schema generator and verified all 19 schemas (7 entities + 12 tool inputs)
generate without errors.

The schemas/tool-inputs/ directory had JSON Schema files for 9 of the 12 onX tool inputs. Three were missing because they were not wired into the generator script:

- create-return.json
- get-returns.json
- get-product-variants.json

Added the corresponding imports and schema definition entries to generate-schemas.ts, then regenerated. All 12 tool-input schemas now have JSON Schema (draft-07) output alongside their Zod source definitions.

Made-with: Cursor

@ideaoforder ideaoforder left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! Much needed.

@AJITHMELVIN AJITHMELVIN merged commit 3559adc into develop Mar 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants