mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:01:42 +08:00
refactor: mark featured and draft properties as optional
This commit is contained in:
@@ -5,8 +5,8 @@ export const blogSchema = z.object({
|
||||
pubDatetime: z.date(), // z.string().datetime() only available in Zod v3.20.2
|
||||
title: z.string(),
|
||||
postSlug: z.string().optional(),
|
||||
featured: z.boolean(),
|
||||
draft: z.boolean(),
|
||||
featured: z.boolean().optional(),
|
||||
draft: z.boolean().optional(),
|
||||
tags: z.array(z.string()),
|
||||
ogImage: z.string().optional(),
|
||||
description: z.string(),
|
||||
|
||||
Reference in New Issue
Block a user