We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1c7c60 commit 2af9ad0Copy full SHA for 2af9ad0
apps/web/utils/actions/knowledge.validation.ts
@@ -2,15 +2,15 @@ import { z } from "zod";
2
3
export const createKnowledgeBody = z.object({
4
title: z.string().min(1, "Title is required"),
5
- content: z.string().min(1, "Content is required"),
+ content: z.string(),
6
});
7
8
export type CreateKnowledgeBody = z.infer<typeof createKnowledgeBody>;
9
10
export const updateKnowledgeBody = z.object({
11
id: z.string(),
12
13
14
15
16
export type UpdateKnowledgeBody = z.infer<typeof updateKnowledgeBody>;
0 commit comments