fix: Add description field to personal contacts
- Add description to Zod validation schema - Add description to controller normalizePayload function Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,7 @@ const createContactSchema = z.object({
|
||||
email: z.string().email('Neplatný email'),
|
||||
secondaryEmail: z.union([z.string().email('Neplatný email'), z.literal('')]).optional(),
|
||||
companyId: z.union([z.string().uuid(), z.literal(''), z.null()]).optional(),
|
||||
description: z.union([z.string().max(1000), z.literal(''), z.null()]).optional(),
|
||||
})
|
||||
|
||||
const updateContactSchema = createContactSchema.partial()
|
||||
|
||||
Reference in New Issue
Block a user