koajs / joi-router

Configurable, input and output validated routing for koa
MIT License
450 stars 96 forks source link

Plan to support Joi validation object in addition to definition? #18

Closed eizzo closed 7 years ago

eizzo commented 8 years ago

It appears the header, query, params, and body properties of the validate object in route() options do not support a Joi schema object as generated by Joi.compile(). Any plans to support Joi schema objects in these cases? Thanks.

aheckmann commented 8 years ago

happy to support it / surprised it isn't supported since we pass these values to Joi.validate. Can you paste an example?

aheckmann commented 7 years ago

no response. closing