Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Zod preprocess works but coerce and tranform do not work with trpc-openapi #453

Description

@ax-at

When Zod's coerce and transform are used to modify the output schema, the generated OpenAPI document does not reflect those modifications. However, the API output reflects these modifications. Also, the TypeScript compiler shows errors about not being able to match between the .output() zod validation and the return type from the .query() method.

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