fix broken form validation on emails

This commit is contained in:
KMKoushik
2025-04-21 10:53:57 +10:00
parent c5aa5a5ff0
commit 6815fdc149

View File

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