diff --git a/src/content/_schemas.ts b/src/content/_schemas.ts index 8786ebf..4d3fab7 100644 --- a/src/content/_schemas.ts +++ b/src/content/_schemas.ts @@ -1,7 +1,7 @@ import { z } from "astro:content"; export const blogSchema = z.object({ - author: z.string(), + author: z.string().optional(), pubDatetime: z.date(), // z.string().datetime() only available in Zod v3.20.2 title: z.string(), postSlug: z.string().optional(),