Added link to test url

This commit is contained in:
2024-11-23 12:08:30 -06:00
parent 983cc1f2b7
commit d9f4a56dd3
2 changed files with 30 additions and 6 deletions

View File

@@ -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>;