koajs / bodyparser

Koa body parsing middleware
MIT License
1.31k stars 116 forks source link

validate & body #82

Closed Ailein closed 7 years ago

Ailein commented 7 years ago

ctx.request.body

the value will always return string type? right?

if i use the parameter https://github.com/node-modules/parameter

how to check number type?

image

dead-horse commented 7 years ago

on, if your request's content type is application/json, it can won't always be string.