Closed geko1971 closed 11 months ago
hello i'd like to achieve the same for date fields
"birthday": {
"title": "Birthday",
"type": "string",
"format": "date"
},
@grmkris Date and time formats have no equivalents in Zod, sorry
we could do z.coerce.date() ?
@grmkris Date and time formats have no equivalents in Zod, sorry
They actually got added recently: https://github.com/colinhacks/zod/pull/1766
Hello Stefan, first of all congrats for your really helpful lib!
It would be great to add the missing string format validations that are part of JSON format assertion vocabulary, maybe starting from the ones that maps easily with zod assertions, such as IP Addresses validations.
That could only require a small change to
src/parsers/parseString.ts
module:Thank you!