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

z.intersection() throws error when used as the input for trcp router #441

Open
dnistreanu-diffco opened this issue Mar 5, 2024 · 0 comments

Comments

@dnistreanu-diffco
Copy link

dnistreanu-diffco commented Mar 5, 2024

I've tried to use an intersection like this:

export const xInput = z.intersection( yInput.partial(), z.object({id: z.string()}) );

I get the following error when trying to generate openapi json file: Input parser must be a ZodObject

@dnistreanu-diffco dnistreanu-diffco changed the title z.intersection() throws error when used as the input for trcp router z.intersection() throws error when used as the input for trcp router Mar 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant