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

Add missing format for string #256

Closed
Raphael-Bahuau opened this issue Sep 11, 2024 · 2 comments · Fixed by #262
Closed

Add missing format for string #256

Raphael-Bahuau opened this issue Sep 11, 2024 · 2 comments · Fixed by #262
Assignees

Comments

@Raphael-Bahuau
Copy link

Hello your lib is great, but could you add missing format for string ?

I would like to be able to use z.string().ip().

Here is the missing format list :

  • emoji

  • nanoid

  • cuid

  • cuid2

  • ulid

  • includes

  • startsWith

  • endsWith

  • datetime

  • ip

  • date

  • time

  • duration

  • base64

Thanks !

AGalabov added a commit that referenced this issue Oct 4, 2024
@AGalabov AGalabov self-assigned this Oct 4, 2024
AGalabov added a commit that referenced this issue Oct 4, 2024
@AGalabov AGalabov linked a pull request Oct 4, 2024 that will close this issue
AGalabov added a commit that referenced this issue Oct 4, 2024
@AGalabov
Copy link
Collaborator

AGalabov commented Oct 7, 2024

@Raphael-Bahuau this was release with v7.2.0 for all formats that zod supports.

@Raphael-Bahuau
Copy link
Author

Thank for support 👍 I will upgrade !

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 a pull request may close this issue.

2 participants