Composable schemas for JavaScript and Node.js
Home Page:https://git.io/schm
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
diegohaz opened this issue 7 years ago · comments
const schema = require('schm') const userSchema = schema({ name: { type: String, required: true, }, }) userSchema.validate({ name: '' }).then().catch()