Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(v4): toJSONSchema - wrong record tuple output when targeting openapi-3.0#5145

Merged
colinhacks merged 2 commits intocolinhacks:mainfrom
marcalexiei:zod-openapi-tuple
Aug 24, 2025
Merged

fix(v4): toJSONSchema - wrong record tuple output when targeting openapi-3.0#5145
colinhacks merged 2 commits intocolinhacks:mainfrom
marcalexiei:zod-openapi-tuple

Conversation

@marcalexiei
Copy link
Contributor


I refactored the logic for converting tuples in a JSON schema:

  1. Retrieve the static elements
  2. Retrieve any additional elements (if available)
  3. Assemble the properties into the json variable based on the target

I also added a separate commit to remove the unused variable data in get-llm-text.ts,
which eliminates warnings when running biome checks.

@colinhacks colinhacks merged commit 25a4c37 into colinhacks:main Aug 24, 2025
4 checks passed
@marcalexiei marcalexiei deleted the zod-openapi-tuple branch August 24, 2025 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[v4] toJSONSchema - openapi-3.0 - wrong tuple output

2 participants