You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
By generating the kotlin client from an openapi spec which contains a parameter that is an enum array with a default value, the generated code cannot be built, with an error like
Unresolved reference: arrayListOf
Unresolved reference: active
generated code :
fun xxx(@Query("statuses") statuses: @JvmSuppressWildcards kotlin.collections.List<kotlin.String>? = Statuses.arrayListOf(active)): Call<yyy>
Bug Report Checklist
Description
By generating the kotlin client from an openapi spec which contains a parameter that is an enum array with a default value, the generated code cannot be built, with an error like
generated code :
We should be able to build without error
openapi-generator version
7.7.0
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
./gradlew assemble
The text was updated successfully, but these errors were encountered: