Skip to content

How do I map an array of values into discriminated union options #985

Answered by JacobWeisenburger
Aaronius asked this question in Q&A
Discussion options

You must be logged in to vote

I have played around with this and I don't really see a good solution without changing zod's code. Even if I manually export ZodDiscriminatedUnionOption, I'm still running into problems. Would you like to make this into an issue? In my opinion, this is a bug. I think that you should be able to do what you are trying to do.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Aaronius
Comment options

@cawa-93
Comment options

@Aaronius
Comment options

Answer selected by Aaronius
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug-confirmed Bug report that is confirmed
3 participants