chentsulin / koa-context-validator

A robust context validator for koajs. Use Joi behind the scenes.
MIT License
54 stars 3 forks source link

Output validation? #10

Closed zaaack closed 7 years ago

chentsulin commented 7 years ago

I am not sure we should support this feature just because hapi supports it. I will encourage keep assigning consistent output instead of relying on output validation.

chentsulin commented 7 years ago

IMO using static type checking with flowtype or typescript is more efficient than dynamic type checking with output validation, so closing this issue.

zaaack commented 7 years ago

@chentsulin Ok, I want to integrate the validation with swagger, and flowtype or typescript are not easy to do this. I'll just create a built-in Joi validation.