You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have schema like this, which worked without problems till version 6.1.0.
{
param: Joi.boolean().when('param2', { is: null, then: Joi.forbidden() })
}
As of version 6.1.1 it start to throw TypeError:
TypeError: Cannot read property 'isJoi' of null
at [object Object].internals.Alternatives.when (node_modules/joi/lib/alternatives.js:84:20)
at [object Object].internals.Any.when (node_modules/joi/lib/any.js:360:28)
The text was updated successfully, but these errors were encountered:
I have schema like this, which worked without problems till version 6.1.0.
As of version 6.1.1 it start to throw TypeError:
The text was updated successfully, but these errors were encountered: