taxonomy/lib/validations/post.ts
2022-10-26 17:18:06 +04:00

8 lines
208 B
TypeScript

import * as z from "zod"
export const postPatchSchema = z.object({
title: z.string().min(3).max(128).optional(),
// TODO: Type this properly from editorjs block types?
content: z.any().optional(),
})