lib/transformers/ng.app.transformer.js
function getSchemaValidations(appInfo, resources) {
    if (!appInfo.includeSchemas) { return null; }

    // if resources not passed in, then get from pancakes
    resources = resources || this.pancakes.cook('resources', null);

    var validations = {};
    _.each(resources, function (resource) {
        _.each(resource.fields, function (fieldDef, fieldName) {
            if (fieldDef.ui) {
                validations[resource.name] = validations[resource.name] || {};


                validations[resource.name][fieldName] = fieldDef;
            }
        });
    });

    return validations;
}
function getSchemaValidations(appInfo, resources) {
    if (!appInfo.includeSchemas) { return null; }

    // if resources not passed in, then get from pancakes
    resources = resources || this.pancakes.cook('resources', null);

    var validations = {};
    _.each(resources, function (resource) {
        _.each(resource.fields, function (fieldDef, fieldName) {
            if (fieldDef.ui) {
                validations[resource.name] = validations[resource.name] || {};


                validations[resource.name][fieldName] = fieldDef;
            }
        });
    });

    return validations;
}
function getSchemaValidations ( appInfo , resources ) { if ( ! appInfo . includeSchemas ) { return null ; } // if resources not passed in, then get from pancakes resources = resources || this . pancakes . cook ( 'resources' , null ) ; var validations = { } ; _ . each ( resources , function ( resource ) { _ . each ( resource . fields , function ( fieldDef , fieldName ) { if ( fieldDef . ui ) { validations [ resource . name ] = validations [ resource . name ] || { } ; validations [ resource . name ] [ fieldName ] = fieldDef ; } } ) ; } ) ; return validations ; }
Get the stringified version of the schem
@param appInfo
@param resources
@returns {*}
Get the stringified version of the schem