I am trying to do dependent validation based on a context option with a JOI schema.
let context = { "User.HasChildren": false, } let schema = Joi.obj