Merge #639: validate the task title minimum after trimming

This commit is contained in:
Addy Osmani authored and GitHub committed 2026-10-10 01:22:44 -07:00
commit 242f5a56c7
1 file changed
+1 -1
@@ -159,7 +159,7 @@ The `range() !== 'unicast'` check covers loopback, link-local `169.254.169.254`
import { z } from 'zod';
const CreateTaskSchema = z.object({
title: z.string().min(1).max(200).trim(),
title: z.string().max(200).trim().min(1),
description: z.string().max(2000).optional(),
priority: z.enum(['low', 'medium', 'high']).default('medium'),
dueDate: z.string().datetime().optional(),