You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{type: 'object',properties: {// Can never validate, conflicting typeslen: {allOf: [{type: 'string'},{type: 'number',minimum: 5}]}},required: ['len'],additionalProperties: false,'$schema': 'http://json-schema.org/draft-07/schema#'}
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: