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.
-
Description
It's currently not possible to validate time values like
12:34
using class-validator. These may come the time input HTML element.Proposed solution
Add a new
@IsTime
validator which calls theisTime
function from validator.js.Beta Was this translation helpful? Give feedback.
All reactions