Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant