Skip to content

fix(openapi-generator): preserve response representations per status#6404

Open
craigsmitham wants to merge 1 commit into
Effect-TS:mainfrom
craigsmitham:craig/fix-openapi-response-representations
Open

fix(openapi-generator): preserve response representations per status#6404
craigsmitham wants to merge 1 commit into
Effect-TS:mainfrom
craigsmitham:craig/fix-openapi-response-representations

Conversation

@craigsmitham

Copy link
Copy Markdown
Contributor

Summary

  • preserve multiple JSON-compatible response representations on one status
  • decode common and schema-declared binary success responses in regular generated methods
  • keep type-only decoder arguments aligned when binary and JSON operations share a client
  • retain the companion streaming method for binary responses

Closes #6368.
Closes #6372.
Closes #6374.

Validation

  • pnpm test packages/tools/openapi-generator/test/OpenApiGenerator.test.ts
  • pnpm lint-fix
  • pnpm check

@github-project-automation github-project-automation Bot moved this to Discussion Ongoing in PR Backlog Jul 14, 2026
@changeset-bot

changeset-bot Bot commented Jul 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 27f012b

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

This PR includes changesets to release 27 packages
Name Type
@effect/openapi-generator Patch
effect Patch
@effect/opentelemetry Patch
@effect/platform-browser Patch
@effect/platform-bun Patch
@effect/platform-node-shared Patch
@effect/platform-node Patch
@effect/vitest Patch
@effect/ai-anthropic Patch
@effect/ai-openai-compat Patch
@effect/ai-openai Patch
@effect/ai-openrouter Patch
@effect/atom-react Patch
@effect/atom-solid Patch
@effect/atom-vue Patch
@effect/sql-clickhouse Patch
@effect/sql-d1 Patch
@effect/sql-libsql Patch
@effect/sql-mssql Patch
@effect/sql-mysql2 Patch
@effect/sql-pg Patch
@effect/sql-pglite Patch
@effect/sql-sqlite-bun Patch
@effect/sql-sqlite-do Patch
@effect/sql-sqlite-node Patch
@effect/sql-sqlite-react-native Patch
@effect/sql-sqlite-wasm 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

@IMax153 IMax153 added bug Something isn't working 4.0 labels Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.0 bug Something isn't working

Projects

Status: Discussion Ongoing

2 participants