code: function(value, attr, maxLength, model) {
          if (!_.isString(value) || value.length > maxLength) {
            return this.format(getMessageKey(this.msgKey, defaultMessages.maxLength), this.formatLabel(attr, model), maxLength);
          }
        }
docs: Max length validator Validates that the value has to be a string with length equal to or less than the max length value specified