feature: A parameter for isDateString #2231
Labels
flag: needs discussion
Issues which needs discussion before implementation.
type: feature
Issues related to new features.
Description
The problem is ORM level like prisma which has DateTime type so string like 2023-09-25 is valid for class-validator but invalid for Prisma which leads to exception "Invalid value for argument startsAt: premature end of input. Expected ISO-8601 DateTime."
Proposed solution
Add an extra parameter something like isDateTime which checks if a string has time.
The text was updated successfully, but these errors were encountered: