Closed tonyxiao closed 10 months ago
@tonyxiao any idea what the generated type should be? I also don't see the usecase for it - i.e in the OpenAPI world a parameter/body field being undefined (and validated as such) is the equivalent of it not being present at all. So I am not sure what you are trying to achieve.
Would you be able to share an example usage?
And as a short term fix - if you know what type you would want in your documentation - you can always specify it manually with z.undefined().openapi({ type: 'whatever-you-want-here' })
Getting this error currently