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
{{ message }}
Repository navigation
[BUG][KOTLIN] Bug generating array of enum with default value #20394
[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>
Activity