UNPKG

async-validate

Version:

Asynchronous validation for node and the browser

18 lines (16 loc) 341 B
var schema = { type: 'object', additional: false, // trigger code path whereby transform cannot assign inline // on root object as there is no parent object to assign to transform: function(value) { return value; }, fields: { address: { type: "object", required: true } } } module.exports = schema;