We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0595547 commit c7158f4Copy full SHA for c7158f4
lib/service/post/constraints.ts
@@ -21,7 +21,11 @@ export const postSchema = z.object({
21
.string()
22
.min(POST_CONTENT_MIN_LENGTH, POST_CONTENT_MIN_LENGTH_ERROR)
23
.max(POST_CONTENT_MAX_LENGTH, POST_CONTENT_MAX_LENGTH_ERROR),
24
- memo: z.string().min(POST_MEMO_MIN_LENGTH).max(POST_MEMO_MAX_LENGTH),
+ memo: z
25
+ .string()
26
+ .min(POST_MEMO_MIN_LENGTH)
27
+ .max(POST_MEMO_MAX_LENGTH)
28
+ .optional(),
29
});
30
31
export type PostSchema = z.infer<typeof postSchema>;
0 commit comments