koa-rest-api-boilerplate
koa-rest-api-boilerplate copied to clipboard
Enhance HTTP request data validation
trafficstars
Problem
controllershould validate the requestbody,param,query,header,cookiebefore processing the business logic.- Validation should check the data type, format, ranges and more.