Skip to content

Preserve tuples in readable and writable types#2842

Open
jessedijkstra wants to merge 2 commits into
openapi-ts:mainfrom
osedudev:fix/preserve-tuples-in-read-write-helpers
Open

Preserve tuples in readable and writable types#2842
jessedijkstra wants to merge 2 commits into
openapi-ts:mainfrom
osedudev:fix/preserve-tuples-in-read-write-helpers

Conversation

@jessedijkstra

Copy link
Copy Markdown

Readable and writable OpenAPI client types now retain tuple length and element positions, so fixed-length response contracts remain compatible with generated schemas.

Previously, tuple responses were widened to generic arrays while filtering read-only and write-only fields.

Keep tuple arity and element positions through Readable and Writable transformations so generated clients retain fixed-length schema contracts.
@jessedijkstra jessedijkstra requested a review from a team as a code owner July 14, 2026 13:27
@netlify

netlify Bot commented Jul 14, 2026

Copy link
Copy Markdown

👷 Deploy request for openapi-ts pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit abf73b8

@changeset-bot

changeset-bot Bot commented Jul 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: abf73b8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openapi-typescript-helpers Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

1 participant