Skip to content

Support for references in date.min() and date.max()? #477

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

Closed
clarle opened this issue Nov 7, 2014 · 2 comments
Closed

Support for references in date.min() and date.max()? #477

clarle opened this issue Nov 7, 2014 · 2 comments
Assignees
Labels
feature New functionality or improvement
Milestone

Comments

@clarle
Copy link

clarle commented Nov 7, 2014

It seems like Joi doesn't currently support references in date.min() and date.max(). I'm trying to do something like this:

Joi.object().keys({
  date_range_start : Joi.date(),
  date_range_end   : Joi.date().min(Joi.ref('date_range_start'))
});

Would this be an accepted feature if a pull request was made for it?

Thanks!

@Marsup Marsup added the request label Nov 7, 2014
@Marsup
Copy link
Collaborator

Marsup commented Nov 7, 2014

Dupe of #404. Help is always welcome.

@Marsup Marsup closed this as completed Nov 7, 2014
@Marsup Marsup self-assigned this Nov 7, 2014
@Marsup Marsup added this to the 5.1.0 milestone Jan 1, 2015
@hueniverse hueniverse added feature New functionality or improvement and removed request labels Sep 19, 2019
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New functionality or improvement
Projects
None yet
Development

No branches or pull requests

3 participants