zod-openapi
zod-openapi copied to clipboard
Find a nicer way to deal with versions
Since we are piping around the state object. We can potentially use that as a generic typeguard for when to use 3.1 vs 3.0 types
Thought of using conditional return types but that doesn't look possible:
https://github.com/microsoft/TypeScript/issues/33014