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 am not sure what's the right way of allowing undefined values in an array but the default should not be to allow it. It is rarely the desired or expected outcome.
it('errors on undefined value',function(done){varschema=Joi.object({test: Joi.array().includes(Joi.number())});varinput={test: [undefined]};schema.validate(input,function(err,value){expect(err).to.exist();done();});});
I am not sure what's the right way of allowing
undefined
values in an array but the default should not be to allow it. It is rarely the desired or expected outcome.Reported in hapijs/hapi#2138
The text was updated successfully, but these errors were encountered: