fix broken form validation on emails

This commit is contained in:
KMKoushik committed 2025-04-21 10:32:20 +10:00
1 parent 84de7a1f65
commit c5aa5a5ff0
2 files changed
+2 -2

No files matched your search

@@ -5,7 +5,7 @@ import { z } from "@hono/zod-openapi";
*/
export const emailSchema = z
.object({
to: z.string().email().or(z.array(z.string().email())),
to: z.string().or(z.array(z.string())),
from: z.string().email(),
subject: z.string().min(1).optional().openapi({
description: "Optional when templateId is provided",