conformation
v0.13.0
Published
Yet another object validator
Downloads
12
Maintainers
Readme
Conformation
Kinda like JOI, but with promises and more pluggable.
Example
import Schema from 'conformation';
let schema = Schema.object().keys({
foo: Schema.string().required(),
bar: Schema.number(),
date: Schema.moment({format: 'DD/MM/YYYY'})
});
schema.validate({foo: 'hello', bar: 5, date: '14/04/2016'});
TODO...