function formatZodErrors(error) {
  return error.issues.map((issue) => `${issue.path.join(".")}: ${issue.message}`).join("; ");
}
function safeParsePayloadJson(payloadJson) {
  try {
    return typeof payloadJson === "string" ? JSON.parse(payloadJson) : {};
  } catch {
    return {};
  }
}
export {
  formatZodErrors,
  safeParsePayloadJson
};
//# sourceMappingURL=validation.js.map
