From c4c0f716cbaa8977bfaf6f504129dd6ad4531e56 Mon Sep 17 00:00:00 2001 From: David Nahodyl Date: Fri, 7 Jun 2024 15:50:13 -0400 Subject: [PATCH] cleanup --- playground/server/api/todo-precog/index.post.ts | 2 +- playground/server/api/todo/index.post.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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) => {