Skip to content

[FEAT] TypeScript SDK: Support zod v4 #2981

@linardsblk

Description

@linardsblk

Is your feature request related to a problem? Please describe.
I like the addition of inputValidator for tasks, but zod v4 has been out for a while now and inputValidator only accepts zod v3 schema type.

Describe the solution you'd like
zod v4 schemas work seamlessly. Ideally support for standard schema for no library lock in https://github.com/standard-schema/standard-schema

Describe alternatives you've considered
zod can be imported from library
import { z } from "@hatchet-dev/typescript-sdk/node_modules/zod"

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions