Skip to content

Zod cannot validate headers #2537

@ClayMav

Description

@ClayMav

Description

When using zod for validation, the headers (type Headers) are being safeParse'd into an object and that doesn't work, so if a route required headers, it just can't be validated.

Reproducible example or configuration

No response

OpenAPI specification (optional)

No response

System information (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🔥Broken or incorrect behavior.needs info ⏳More information needed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions