Open
Description
What are you trying to achieve or the steps to reproduce ?
Please update the documentation for joi.ref. The example part to:
{
x: {
a: Joi.any(),
b: {
c: Joi.any(),
d: Joi.ref('c'),
e: Joi.ref('...a'),
f: Joi.ref('....y')
},
c: Joi.array().items({
g: Joi.ref('....a'),
}),
},
y: Joi.any()
}
It is not clear that the array needs one more level and dot to get to the grandparent.