koajs / joi-router

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

Setting converted query values is not working correctly #21

Closed satazor closed 8 years ago

satazor commented 8 years ago

Joi supports converting/casting types but this feature is not working correctly with the koa integration.

If one has a query validator, this line sets request.query to the converted object but it then gets stringified again here which causes numbers, booleans, etc to be converted to string again.

aheckmann commented 8 years ago

I think this is the same as #6

satazor commented 8 years ago

I think it's related yes.