function formatWorkflowValidationError(body, fallback) {
  const issue = body?.details?.[0];
  if (issue?.message) {
    const path = (issue.path ?? []).join(".");
    return path ? `${path} - ${issue.message}` : issue.message;
  }
  return body?.error || fallback;
}
export {
  formatWorkflowValidationError
};
//# sourceMappingURL=format-validation-error.js.map
