Skip to content

codegen: fix HTTP oneof ResultType projections#3917

Merged
raphael merged 2 commits intov3from
fix/http-oneof-resulttype-views
Apr 11, 2026
Merged

codegen: fix HTTP oneof ResultType projections#3917
raphael merged 2 commits intov3from
fix/http-oneof-resulttype-views

Conversation

@raphael
Copy link
Copy Markdown
Member

@raphael raphael commented Apr 11, 2026

Summary

  • project client response bodies to the effective view before collecting unions, emitting body types, and generating decode transforms
  • preserve value-shaped request-body validation contexts for OneOf object branches so client CLI code does not reference missing helpers
  • add focused regressions for HTTP oneof projections, direct union validation context, and explicit-view streaming expectations

Test plan

  • go test ./http/codegen ./codegen

raphael added 2 commits April 11, 2026 10:35
Project client response bodies to the effective view before collecting unions, emitting body types, and generating decode transforms so HTTP codegen uses one transport shape consistently. Align union validation with value-shaped request bodies and cover the regressions in HTTP and validation tests.
@raphael raphael merged commit 3bc54e5 into v3 Apr 11, 2026
7 checks passed
@raphael raphael deleted the fix/http-oneof-resulttype-views branch April 11, 2026 18:04
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