src/aria/core/JsonValidator.js
function (args) {
                var beanDef = (args.beanDef ? args.beanDef : this._getBean(args.beanName));
                if (!beanDef) {
                    this._errors = [];
                    this._logError(this.BEAN_NOT_FOUND, args.beanName);
                    return this._errors;
                }

                this._errors = [];
                // launching the validation process
                this._checkType({
                    dataHolder : args,
                    dataName : 'json',
                    path : 'ROOT',
                    value : args.json,
                    beanDef : beanDef
                });
                return this._errors;
            }
function (args) {
                var beanDef = (args.beanDef ? args.beanDef : this._getBean(args.beanName));
                if (!beanDef) {
                    this._errors = [];
                    this._logError(this.BEAN_NOT_FOUND, args.beanName);
                    return this._errors;
                }

                this._errors = [];
                // launching the validation process
                this._checkType({
                    dataHolder : args,
                    dataName : 'json',
                    path : 'ROOT',
                    value : args.json,
                    beanDef : beanDef
                });
                return this._errors;
            }
function ( args ) { var beanDef = ( args . beanDef ? args . beanDef : this . _getBean ( args . beanName ) ) ; if ( ! beanDef ) { this . _errors = [ ] ; this . _logError ( this . BEAN_NOT_FOUND , args . beanName ) ; return this . _errors ; } this . _errors = [ ] ; // launching the validation process this . _checkType ( { dataHolder : args , dataName : 'json' , path : 'ROOT' , value : args . json , beanDef : beanDef } ) ; return this . _errors ; }
Process the validation of a Json object with the given bean definition.
@param args [args] { beanName/beanDef: beanName or beanDef json: structure to validate } Return the array
of errors.
Process the validation of a Json object with the given bean definition .