Skip to content

Vouch request: kaiizer777 — fix for #4939 (MCP / schema-to-json z.date crash) #4963

Description

@kaiizer777

Why do you want to contribute?

I recently set up trigger.dev locally and explored the codebase. I investigated and resolved #4939, where converting Zod 4 schemas containing z.date() to JSON Schema threw Date cannot be represented in JSON Schema because unrepresentable was not configured in convertZod4Schema.

I implemented the fix with unrepresentable mapping date nodes to { type: "string", format: "date-time" } (matching Zod 3 output), added comprehensive unit tests covering date schemas and wrappers across Zod 4 and minimum Zod 3 permalink, added a patch changeset, and verified that all tests (both in @trigger.dev/schema-to-json and trigger.dev MCP tests) pass cleanly with 0 lint/formatting errors.

PR is prepared at #4962 (branch fix/zod4-date-json-schema). I would love to be vouched so the PR can be reviewed and I can continue tackling more issues across the repo!

Prior contributions or relevant experience

Experienced with TypeScript/JavaScript monorepos, full-stack architecture, and open source development.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions