Repository navigation
fix: include items for strict Zod v3 any arrays - #2357
Merged
Merged
Conversation
Contributor
jbeckwith-oai
approved these changes
Aug 15, 2026
jbeckwith-oai
left a comment
Contributor
There was a problem hiding this comment.
Reviewed exact head 6710638. No findings. The strict-only Zod v3 any-array items fix preserves parseDef metadata and references, matches v4, leaves non-strict and generic targets unchanged, and has focused coverage across all public helpers. Strict thermo is clean and exact CI is fully green.
Merged
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
itemsschema when strict structured-output conversion encounters a Zod v3 array ofz.any(), matching the existing Zod v4 output and strict-schema validation requirements.parseDefpath so described items retain metadata and named item definitions produce resolvable$refvalues.jsonSchema7,jsonSchema2019-09, andopenApi3converter output without changing typed or unknown arrays.Regression coverage
zodResponseFormat,zodTextFormat,zodFunction, andzodResponsesFunction.schemaDefinitions, existing strictifier rejection/acceptance, typed and unknown arrays, Realtime compatibility, and all three generic converter targets.Verification
pnpm test tests/helpers/zod-any-array-items.test.ts— 14 passed.pnpm test:unit— 71 files / 2,104 tests passed.pnpm lint— generated-file, formatting, and lint checks passed.pnpm exec tsc --noEmit— passed with TypeScript 6.0.3.pnpm build— production CommonJS/ESM build passed../node_modules/typescript-4-9/bin/tsc --project dist/src/tsconfig.json --noEmit— passed with TypeScript 4.9.5../node_modules/typescript/bin/tsc --project dist/src/tsconfig.json --noEmit— passed with TypeScript 6.0.3.node --experimental-strip-types scripts/test-packed-package.ts— packed CommonJS/ESM consumers and TypeScript 4.9/current source checks passed across 1,200 source maps.