Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support zod native string date-time #56

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

vargasd
Copy link

@vargasd vargasd commented Jun 20, 2023

Currently the native z.string().datetime() is not supported. While ZodDateString handles this, it means for my project that nestjs-zod has to be used in a lower-level package, rather than just in the api/nestjs package where it does the appropriate work on top of the base types.

Currently the native `z.string().datetime()` is not supported. While
`ZodDateString` handles this, it means for my project that `nestjs-zod`
has to be used in a lower-level package, rather than just in the
api/nestjs package where it does the appropriate work on top of the base
types.
@risen228 risen228 merged commit 57527ad into BenLorantfy:main Aug 24, 2023
@mbsanchez01
Copy link

I vote for z.string().datetime() and z.string().date() to be supported too, I'm using openapi-zod-client to generate a client for one specific API, and it generates schemas using z.string().datetime() and z.string().date(), so, it will be great if you can add support for those.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants