Skip to content

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

@clarle

Description

@clarle

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!

Metadata

Metadata

Assignees

Labels

featureNew functionality or improvement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions