-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
breaking changesChange that can breaking existing codeChange that can breaking existing codebugBug or defectBug or defect
Milestone
Description
> Joi.compile(Joi.ref('foo')).describe()
{ type: 'any',
flags: { allowOnly: true },
valids:
[ { [Function]
isContext: false,
key: 'foo',
path: [Object],
depth: 1,
root: 'foo',
isJoi: true,
toString: [Function] } ] }
But:
> Joi.compile(Joi.string().when('a', { is: 'foo', then: Joi.forbidden() })).describe()
{ type: 'alternatives',
flags: { presence: 'ignore' },
alternatives:
[ { ref: 'ref:a',
is: [Object],
then: [Object],
otherwise: [Object] } ] }
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
breaking changesChange that can breaking existing codeChange that can breaking existing codebugBug or defectBug or defect