I saw that pipeStrategy can be used to only get the input type, so would you be open to an output option for that, if possible? If it's relatively simple, I'll make a PR for it.
That's the thing, short of using a compiler you can't get the output type to serialize it. But I guess an option to pick the last schema in the pipe could work.
I noticed that
z.pipe
can create conflicting schemas due to theallOf
inclusion of the types. A crude example:I saw that
pipeStrategy
can be used to only get the input type, so would you be open to anoutput
option for that, if possible? If it's relatively simple, I'll make a PR for it.