Skip to content

feat(java,go): Java8/OkHttp; generic unions, method arg. options - #2104

Merged
2ynn merged 1 commit into
mainfrom
feat/java/okhttp
Jul 24, 2026
Merged

feat(java,go): Java8/OkHttp; generic unions, method arg. options#2104
2ynn merged 1 commit into
mainfrom
feat/java/okhttp

Conversation

@2ynn

@2ynn 2ynn commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Java

  • fix: resolve imports for cross-namespace discriminated unions
  • feat: add support for Java8 and OkHttp transport
  • feat: prevent debug logging from buffering JSONL streaming responses
  • feat: configurable getter style (always optional or raw)

Go

  • feat: support optional method argument options
  • feat: idiomatic method-collision resolution
  • feat: add opt-in generic constructors for union types

Summary by cubic

Adds Java 8 support with OkHttp transport and improves Go ergonomics for method options and union types. Fixes Java import resolution for cross-namespace discriminated unions and stops debug logging from buffering JSONL streams.

  • New Features

    • Java: Java 8 target and OkHttp transport.
    • Java: Configurable getter style (optional vs raw).
    • Go: Optional method argument options.
    • Go: Idiomatic method name collision resolution.
    • Go: Opt-in generic constructors for union types.
  • Dependencies

    • Bump github.com/speakeasy-api/openapi-generation/v2 to v2.924.0.

Written for commit d9f307b. Summary will update on new commits.

Review in cubic

Java
- fix: resolve imports for cross-namespace discriminated unions
- feat: add support for Java8 and OkHttp transport
- feat: prevent debug logging from buffering JSONL streaming responses
- feat: configurable getter style (always optional or raw)

Go
- feat: support optional method argument options
- feat: idiomatic method-collision resolution
- feat: add opt-in generic constructors for union types
@2ynn
2ynn requested a review from AshGodfrey July 24, 2026 15:38

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Re-trigger cubic

@2ynn
2ynn merged commit 1c1ae00 into main Jul 24, 2026
5 of 6 checks passed
@2ynn
2ynn deleted the feat/java/okhttp branch July 24, 2026 15:48
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.

2 participants