mirror of
https://github.com/addyosmani/agent-skills.git
synced 2026-10-26 15:05:04 +00:00
Validate the task title minimum after trimming
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
This commit is contained in:
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';
|
import { z } from 'zod';
|
||||||
|
|
||||||
const CreateTaskSchema = z.object({
|
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(),
|
description: z.string().max(2000).optional(),
|
||||||
priority: z.enum(['low', 'medium', 'high']).default('medium'),
|
priority: z.enum(['low', 'medium', 'high']).default('medium'),
|
||||||
dueDate: z.string().datetime().optional(),
|
dueDate: z.string().datetime().optional(),
|
||||||
|
|||||||
Reference in new issue
Block a user