mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-02-07 11:42:55 +00:00
12 lines
308 B
TypeScript
12 lines
308 B
TypeScript
|
import { z } from "zod";
|
||
|
|
||
|
export const CreateCard = z.object({
|
||
|
title: z.string({
|
||
|
required_error: "Card title is required",
|
||
|
invalid_type_error: "Card title must be a string",
|
||
|
}).min(2, {
|
||
|
message: "Card title must be at least 2 characters",
|
||
|
}),
|
||
|
boardId: z.string(),
|
||
|
listId: z.string(),
|
||
|
})
|