Skip to content

Comparison between fields #380

@outaTiME

Description

@outaTiME

Hi guys,

it possible to check if one field is bigger / lower than other ?? i need to check if from field is lower than to, this is my validation schema:

{
  from: Joi.number().integer().required().unit('milliseconds'),
  to: Joi.number().integer().required().unit('milliseconds')  
}

thks !

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