code: function(errors) {
        var ret = [];
        errors.forEach(function(error) {
          // Removes errors without a message
          if (v.isArray(error.error)) {
            error.error.forEach(function(msg) {
              ret.push(v.extend({}, error, {error: msg}));
            });
          } else {
            ret.push(error);
          }
        });
        return ret;
      }
docs: In [{error: ["err1", "err2"], ...}] Out [{error: "err1", ...}, {error: "err2", ...}]  All attributes in an error with multiple messages are duplicated when expanding the errors.