hapijs / glue

Server composer for hapi.js
Other
245 stars 62 forks source link

Joi.array() does not accept arguments #83

Closed WesTyler closed 7 years ago

WesTyler commented 7 years ago

This does not result in thrown errors for Joi v10.0.2 or below, but it also does not do anything.

To pave the way for an assumed-to-be-eventual upgrade to Joi v10 (allowing for support for Hapi v16), usage of Joi.array(Joi.object()) should be removed/refactored to Joi.array().items(Joi.object()). Looking at https://github.com/hapijs/glue/blob/master/lib/index.js#L24.

ferrao commented 7 years ago

+1

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.