From 27b9f6f8ad36079227117f4eb526eae795e9118f Mon Sep 17 00:00:00 2001 From: satnaing Date: Sun, 29 Jan 2023 21:27:29 +0630 Subject: [PATCH] refactor: update blog schema's author to be optional --- src/content/_schemas.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(),