Skip to content

[kotlin] Invoke reified function with explicit type#23503

Merged
wing328 merged 1 commit intoOpenAPITools:masterfrom
ffffionn:fix_issue_23486
Apr 9, 2026
Merged

[kotlin] Invoke reified function with explicit type#23503
wing328 merged 1 commit intoOpenAPITools:masterfrom
ffffionn:fix_issue_23486

Conversation

@ffffionn
Copy link
Copy Markdown
Contributor

@ffffionn ffffionn commented Apr 9, 2026

Specify the class/type when calling the reified generic function parseDateToQueryString in the Kotlin client generator.
Fixes #23486

Tagging Kotlin technical committee
@karismann @Zomzog @andrewemery @4brunu @yutaka0m @stefankoppier @e5l @dennisameling


Summary by cubic

Ensure Kotlin client generators and samples call the reified parseDateToQueryString with explicit type arguments for date/time query params to prevent compile errors in generated clients. Fixes #23486.

  • Bug Fixes
    • Generate parseDateToQueryString<...>(...) for date/time query params in jvm-okhttp, jvm-spring-restclient, jvm-spring-webclient, and jvm-vertx.
    • Update ApiClient.kt to pass explicit types for OffsetDateTime, OffsetTime, LocalDateTime, LocalDate, and LocalTime.
    • Add tests asserting explicit type arguments (and rejecting untyped calls) across affected libraries, and update samples to match.

Written for commit 55cb6e4. Summary will update on new commits.

Copy link
Copy Markdown
Contributor

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

Choose a reason for hiding this comment

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

No issues found across 6 files

@wing328 wing328 merged commit 1f18499 into OpenAPITools:master Apr 9, 2026
68 checks passed
@wing328 wing328 modified the milestone: 7.22.0 Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG][KOTLIN] ApiClient does not compile in Kotlin 2.3.0

2 participants