-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
As mentioned in outmoded/lout#57, references should have their own descriptions.
> Joi.compile(Joi.ref('a.b')).describe()
{ type: 'any',
flags: { allowOnly: true },
valids:
[ undefined,
{ [Function]
isContext: false,
key: 'a.b',
path: [Object],
depth: 2,
root: 'a',
isJoi: true,
toString: [Function] } ],
invalids: [ null ] }I think isContext, key, path, depth, root should be exposed at the root of the description and type should indeed be ref.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugBug or defectBug or defect