Fix: Use optional() instead of default() for limit parameter

- Fixes TypeScript type incompatibility with ZodDefault
- limit is now optional number instead of defaulted
- Handle default value in code instead of schema

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-10-09 07:24:28 +02:00
parent ed0788f1b6
commit 3d08b825a6

View File

@@ -20,7 +20,7 @@ const SendMessageSchema = z.object({
});
const ReceiveMessagesSchema = z.object({
limit: z.number().default(10),
limit: z.number().optional(),
});
type SendMessageInput = z.infer<typeof SendMessageSchema>;