This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
feature: add @IsTime #2335
Labels
flag: needs discussion
Issues which needs discussion before implementation.
type: feature
Issues related to new features.
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.The text was updated successfully, but these errors were encountered: