class-validator icon indicating copy to clipboard operation
class-validator copied to clipboard

feature: IsCronExpression

Open muametgrooby opened this issue 2 years ago • 4 comments

Description

Can we get IsCronExpression decorator?

Proposed solution

You can use this package to validate the cron expression under the hood or a well written regular expression https://github.com/TheCloudConnectors/cron-validator

muametgrooby avatar Nov 24 '21 20:11 muametgrooby

I found a libary from @menelai which you can use as a temporary solution https://github.com/menelai/is-cron

dontwan avatar Mar 07 '22 15:03 dontwan

I would love to see this feature implemented in class-validator as well

sergei-gaponik avatar Jul 30 '22 19:07 sergei-gaponik

Is this being added as feature?

SavvasMananShah avatar Dec 04 '23 10:12 SavvasMananShah

I am willing to file a PR about this if one of the maintainers can confirm that they want this to be added

muametgrooby avatar Dec 06 '23 19:12 muametgrooby