lib/modelValidator/lib/modelValidator.js
function (schema) {

    var extendList = find(schema, 'extend');
    for (var extendElem in extendList) {
        if (extendList[extendElem] && extendList[extendElem].extend && _.isFunction(extendList[extendElem].extend)) {
            schema[extendElem] = extendList[extendElem].extend();
        }
    }
    return schema;
}
function (schema) {

    var extendList = find(schema, 'extend');
    for (var extendElem in extendList) {
        if (extendList[extendElem] && extendList[extendElem].extend && _.isFunction(extendList[extendElem].extend)) {
            schema[extendElem] = extendList[extendElem].extend();
        }
    }
    return schema;
}
function ( schema ) { var extendList = find ( schema , 'extend' ) ; for ( var extendElem in extendList ) { if ( extendList [ extendElem ] && extendList [ extendElem ] . extend && _ . isFunction ( extendList [ extendElem ] . extend ) ) { schema [ extendElem ] = extendList [ extendElem ] . extend ( ) ; } } return schema ; }
Extend schema by dynamic functions. Write a function that defined the schema settings for a node
@param schema
@returns {*}
Extend schema by dynamic functions . Write a function that defined the schema settings for a node