trying to use the generated schema with express-zod-api results in an error as the generated schema uses .date() fields or .coerse.date() for input types but neither is compatible with explicit .dateOut() field express-zod-api expects as that field explicitly normalizes Date() object to a string.
trying to use the generated schema with express-zod-api results in an error as the generated schema uses
.date()
fields or.coerse.date()
for input types but neither is compatible with explicit.dateOut()
field express-zod-api expects as that field explicitly normalizesDate()
object to a string.see:
would it be possible to generate out types compatible with express-zod-api. right now all schemas need to be manually extended to use
dateOut()