scripts/core/augmented.js
function() {
            const messages = [];
            if (this.validationMessages && this.validationMessages.errors) {
              const l = this.validationMessages.errors.length;
              var i = 0;
              for (i = 0; i < l; i++) {
                messages.push(this.validationMessages.errors[i].message + " from " + this.validationMessages.errors[i].dataPath);
              }
            }
            return messages;
          }
function() {
            const messages = [];
            if (this.validationMessages && this.validationMessages.errors) {
              const l = this.validationMessages.errors.length;
              var i = 0;
              for (i = 0; i < l; i++) {
                messages.push(this.validationMessages.errors[i].message + " from " + this.validationMessages.errors[i].dataPath);
              }
            }
            return messages;
          }
function ( ) { const messages = [ ] ; if ( this . validationMessages && this . validationMessages . errors ) { const l = this . validationMessages . errors . length ; var i = 0 ; for ( i = 0 ; i < l ; i ++ ) { messages . push ( this . validationMessages . errors [ i ] . message + " from " + this . validationMessages . errors [ i ] . dataPath ) ; } } return messages ; }
Gets the validation messages only in an array
@method getValidationMessages
@memberof Augmented.Model
@returns {array} Returns array of messages from validation
Gets the validation messages only in an array