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.
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.