function isValidValidationError (validationError) {
  return typeof validationError === 'object' &&
      Array.isArray(validationError.path) &&
      typeof validationError.message === 'string'
}
Test whether a custom validation error has the correct structure
@param {*} validationError The error to be checked.
@returns {boolean} Returns true if the structure is ok, false otherwise