From 0a03004c119880ef532bfdd1301049e2cdac3c51 Mon Sep 17 00:00:00 2001 From: Victor Bury Date: Thu, 25 Apr 2024 14:38:27 +0200 Subject: [PATCH] fix(zod): response and body parser array compatibility --- packages/zod/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/zod/src/index.ts b/packages/zod/src/index.ts index fd6186a55..444bd7398 100644 --- a/packages/zod/src/index.ts +++ b/packages/zod/src/index.ts @@ -460,7 +460,7 @@ const parseBodyAndResponse = ({ if (resolvedJsonSchema.items) { return { input: generateZodValidationSchemaDefinition( - resolvedJsonSchema, + resolvedJsonSchema.items as SchemaObject, true, name, strict,