Skip to content

Incompatible with Zod v4 #146

@vjau

Description

@vjau

The sdk doesn't seems to work with zod v4.
I get errors when submitting schema created with zod v4.
When passing the schema to the responseFormatFromZodObject function, TS complains about the following errors

ZodOptional<ZodString>; }, $strip>' is missing the following properties from type 'ZodType<any, any, any>': _type, _parse, _getType, _getOrReturnCtx, and 7 more.

It also fails at runtime.

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