Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: A parameter for isDateString #2231

Open
yanmarinich opened this issue Sep 5, 2023 · 1 comment
Open

feature: A parameter for isDateString #2231

yanmarinich opened this issue Sep 5, 2023 · 1 comment
Labels
flag: needs discussion Issues which needs discussion before implementation. type: feature Issues related to new features.

Comments

@yanmarinich
Copy link

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.

@yanmarinich yanmarinich added flag: needs discussion Issues which needs discussion before implementation. type: feature Issues related to new features. labels Sep 5, 2023
@recallwei
Copy link

Face the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flag: needs discussion Issues which needs discussion before implementation. type: feature Issues related to new features.
Development

No branches or pull requests

2 participants