regarding
|
payload: Joi.alternatives(Joi.object(), Joi.func()).allow(null, false, true), |
now
{} works instead of
Joi.object() so I would expect
[] to work instead of
Joi.alternatives().try()
Joi will auto convert it to alternatives so it will work
This would be a trivial PR but still asking first ;)
regarding
hapi/lib/schema.js
Line 160 in af95913
now
{}works instead ofJoi.object()so I would expect[]to work instead ofJoi.alternatives().try()Joi will auto convert it to alternatives so it will work
This would be a trivial PR but still asking first ;)