diff --git a/playground/server/api/todo-precog/index.post.ts b/playground/server/api/todo-precog/index.post.ts index f8a0ca3..caae9d7 100644 --- a/playground/server/api/todo-precog/index.post.ts +++ b/playground/server/api/todo-precog/index.post.ts @@ -1,7 +1,7 @@ import { z } from "zod"; const todoRequestSchema = z.object({ - description: z.string().trim().min(1, "Description not long enough"), // .startsWith('todo:', 'Must start with "todo:"'), + description: z.string().trim().min(1, "Description not long enough"), age: z.number().min(18, "Must be at least 18 years old"), }); diff --git a/playground/server/api/todo/index.post.ts b/playground/server/api/todo/index.post.ts index fce0b7a..6efc3b9 100644 --- a/playground/server/api/todo/index.post.ts +++ b/playground/server/api/todo/index.post.ts @@ -2,7 +2,6 @@ import { z } from "zod"; const todoRequestSchema = z.object({ description: z.string().trim().min(6, "Description not long enough").startsWith("todo:", 'Must start with "todo:"'), - // .startsWith('todo:', 'Must start with "todo:"'), }); export default defineEventHandler(async (event) => {