Skip to content

Export binary string OpenAPI types using z.file() in zod v4Β #2446

@ntjess

Description

@ntjess

Description

Zod 4 now supports z.file() natively, which means OpenAPI specs referencing a Blob | File can have parity between zod/ts generation.

Current behavior is z.string(), which doesn't match the typescript definitions.

Hopefully this is a straightforward task especially if zod 4 is targeted by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions