From 0d0c4c8469cf796d327153be9c3d394ebf753d2d Mon Sep 17 00:00:00 2001 From: Lars Hampe Date: Tue, 12 Nov 2024 23:07:19 +0100 Subject: [PATCH] chore: add missing validation --- packages/schema/src/page/update.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/schema/src/page/update.ts b/packages/schema/src/page/update.ts index 6ab3a09..f81f7dd 100644 --- a/packages/schema/src/page/update.ts +++ b/packages/schema/src/page/update.ts @@ -7,10 +7,10 @@ export const PageUpdateInput = z title: z.string().min(3).optional().openapi({ example: 'My page', }), - description: z.string().optional().openapi({ + description: z.string().nullable().optional().openapi({ example: '', }), - icon: z.string().optional().openapi({ + icon: z.string().optional().nullable().openapi({ example: 'base64...', }), changelogIds: z.array(z.string().uuid()).optional(),