Skip to content

v0.6.6

Choose a tag to compare

@icebob icebob released this 04 Apr 13:13
· 655 commits to master since this release

0.6.6 (2018-04-04)

Access to the original object in custom validator #5

const schema = {
    email: { 
        type: "custom", 
        check(value, schema, stack, obj) {
            return obj.username || obj.email ? null : this.makeError(...);
        }
    }
};