diegohaz / schm

Composable schemas for JavaScript and Node.js

Home Page:https://git.io/schm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accept params in parse/validate

diegohaz opened this issue · comments

commented
parse({ foo: 1 }, { foo: Number })
validate({ foo: 1 }, { foo: { type: Number, min: 2 } })