Skip to content

Commit 0a03004

Browse files
committedApr 25, 2024
fix(zod): response and body parser array compatibility
1 parent 43647ad commit 0a03004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/zod/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ const parseBodyAndResponse = ({
460460
if (resolvedJsonSchema.items) {
461461
return {
462462
input: generateZodValidationSchemaDefinition(
463-
resolvedJsonSchema,
463+
resolvedJsonSchema.items as SchemaObject,
464464
true,
465465
name,
466466
strict,

0 commit comments

Comments
 (0)
Please sign in to comment.