8000 v4(feature): Add cron string format · Issue #4239 · colinhacks/zod · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

v4(feature): Add cron string format #4239

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

Open
NuroDev opened this issue Apr 19, 2025 · 1 comment
Open

v4(feature): Add cron string format #4239

NuroDev opened this issue Apr 19, 2025 · 1 comment

Comments

@NuroDev
Copy link
NuroDev commented Apr 19, 2025

A small niche use case but still a valid one would be adding support for validating CRON schedule strings.

Example

z.string().cron();
// OR
z.cron();

It is worth acknowledging that adding support for this format would likely add more complexity to manage as it would likely be another advanced regex pattern to manage vs users just being recommended to use z.string().regex(/.../) themselves.

@luca-naujoks
Copy link

+1

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

No branches or pull requests

2 participants
0