Closed
Description
Considering the following code :
> var Joi = require('joi');
> var schema = Joi.array().includes(Joi.number());
> schema.describe().rules[0];
{ name: 'includes',
arg:
[ { isJoi: true,
_type: 'number',
_settings: null,
_tests: [Object],
_dependencies: [],
_mutators: [],
_valids: [Object],
_invalids: [Object],
_flags: [Object],
_description: null,
_notes: [],
_tags: [],
_inner: null } ] }
I think the rules should contain described objects as well, not raw Joi objects.