feature: add @IsTime #2364
Replies: 3 comments
-
|
I just now noticed there's I'd still suggest an |
Beta Was this translation helpful? Give feedback.
-
|
Perhaps it would be a good idea to start using |
Beta Was this translation helpful? Give feedback.
-
|
I'm moving this to the discussion tab, as we are trying to keep the issue count low. Please see this issue for an explanation. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
It's currently not possible to validate time values like
12:34using class-validator. These may come the time input HTML element.Proposed solution
Add a new
@IsTimevalidator which calls theisTimefunction from validator.js.Beta Was this translation helpful? Give feedback.
All reactions