From 2e8f6f0d0382fbc63e2a48409da4aac366462e88 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Thu, 6 Aug 2026 08:31:22 +0200 Subject: [PATCH] [chat] adopt strict zod types (#36102) GitOrigin-RevId: eb3e245599f5db2d29366ce5d8e0993ec6b20338 --- services/chat/app/js/Features/Messages/MessageHttpSchemas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/chat/app/js/Features/Messages/MessageHttpSchemas.js b/services/chat/app/js/Features/Messages/MessageHttpSchemas.js index e917317d70..a3c3753625 100644 --- a/services/chat/app/js/Features/Messages/MessageHttpSchemas.js +++ b/services/chat/app/js/Features/Messages/MessageHttpSchemas.js @@ -3,7 +3,7 @@ import { z, zz } from '@overleaf/validation-tools' export const MAX_MESSAGE_LENGTH = 10 * 1024 // 10kb, about 1,500 words const DEFAULT_MESSAGE_LIMIT = 50 -const projectParams = z.object({ projectId: zz.objectId() }) +const projectParams = z.strictObject({ projectId: zz.objectId() }) const threadParams = projectParams.extend({ threadId: zz.objectId() }) const messageParams = projectParams.extend({ messageId: zz.objectId() }) const threadMessageParams = threadParams.extend({ messageId: zz.objectId() })