lib/main.js
function validate(options) {
    const schema = joi.object().keys({
        config: joi.array().min(_.keys(options.models).length).required(),
        acl: joi.object().required(),
        models: joi.object().required()
    });
    joi.assert(options, schema, 'Invalid Shield Options:');
    return true;
}
function validate(options) {
    const schema = joi.object().keys({
        config: joi.array().min(_.keys(options.models).length).required(),
        acl: joi.object().required(),
        models: joi.object().required()
    });
    joi.assert(options, schema, 'Invalid Shield Options:');
    return true;
}
function validate ( options ) { const schema = joi . object ( ) . keys ( { config : joi . array ( ) . min ( _ . keys ( options . models ) . length ) . required ( ) , acl : joi . object ( ) . required ( ) , models : joi . object ( ) . required ( ) } ) ; joi . assert ( options , schema , 'Invalid Shield Options:' ) ; return true ; }
Validate that the all inputs are properly specified
Validate that the all inputs are properly specified