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

Date Validation #166

Open
ezandonai opened this issue Sep 1, 2023 · 0 comments
Open

Date Validation #166

ezandonai opened this issue Sep 1, 2023 · 0 comments

Comments

@ezandonai
Copy link
Contributor

The proposal is create a validation for date fields.
Today the timestamp fields like created_at, updated_at are using BSON/UTCDateTime type.
But if we want to create another field with date type, we don't have any rule to validate that UTCDateTime type. Even we don't have a transformer that receive a date and convert to UTCDateTime to save on mongo.

So the proposal here is that, create a validation type for dates and a way to convert the date before save.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant