Suppose I have a two dates - fromDate and toDate and I don't want the toDate to be before fromDate. In joi I would refer fromDate as follows -
- fromDate: Joi.date().iso().required(),
- toDate : Joi.date().iso().greater(Joi.ref('startTime')).required()
How can I do the same in joi-json ??