Added link to test url
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
import { z } from "zod";
|
||||
|
||||
export const taskCreationFormSchema = z.object({});
|
||||
export const taskTitleSchema = z
|
||||
.string()
|
||||
.min(1, "title cannot be empty")
|
||||
.max(128, "title cannot be more than 128 characters");
|
||||
|
||||
export const taskCreationFormSchema = z.object({
|
||||
listId: z.number(),
|
||||
title: taskTitleSchema, // Text
|
||||
});
|
||||
|
||||
export type TaskCreationSchema = z.infer<typeof taskCreationFormSchema>;
|
||||
|
||||
Reference in New Issue
Block a user