src/aria/pageEngine/PageEngine.js
function (cfg, beanName, error) {
            try {
                ariaCoreJsonValidator.normalize({
                    json : cfg,
                    beanName : beanName
                }, true);
            } catch (ex) {
                this._utils.logMultipleErrors(error, ex.errors, this);
                if (this._config.onerror) {
                    this.$callback(this._config.onerror, [error]);
                }
                return false;
            }
            return true;
        }
function (cfg, beanName, error) {
            try {
                ariaCoreJsonValidator.normalize({
                    json : cfg,
                    beanName : beanName
                }, true);
            } catch (ex) {
                this._utils.logMultipleErrors(error, ex.errors, this);
                if (this._config.onerror) {
                    this.$callback(this._config.onerror, [error]);
                }
                return false;
            }
            return true;
        }
function ( cfg , beanName , error ) { try { ariaCoreJsonValidator . normalize ( { json : cfg , beanName : beanName } , true ) ; } catch ( ex ) { this . _utils . logMultipleErrors ( error , ex . errors , this ) ; if ( this . _config . onerror ) { this . $callback ( this . _config . onerror , [ error ] ) ; } return false ; } return true ; }
Normalize a configuration. It logs an error in case of validation failure
@param {Object} cfg Configuration to validate
@param {String} beanName name of the bean
@param {String} error Error message to log along with the validation errors
@return {Boolean}
Normalize a configuration . It logs an error in case of validation failure