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
When generating a new client with the kotlin generator and the multiplatform library, if your spec has no api endpoints that require any authentication methods, the generated client will have errors and a private authentications property will be generated with lazy instantiation block of:
{
mapOf()
}
openapi-generator version
4.3.1
OpenAPI declaration file content or url
Works with any declaration that contains zero authorizations: arrays.
Worth being aware of #7353 which, when completed, may supersede the current kotlin-multiplatform support and thereby offer a workaround for this issue.
Uh oh!
There was an error while loading. Please reload this page.
Bug Report Checklist
Description
When generating a new client with the kotlin generator and the multiplatform library, if your spec has no api endpoints that require any authentication methods, the generated client will have errors and a private
authentications
property will be generated with lazy instantiation block of:openapi-generator version
4.3.1
OpenAPI declaration file content or url
Works with any declaration that contains zero
authorizations:
arrays.Command line used for generation
openapi-generator generate -g kotlin --library multiplatform -o kotlin_client -i test.yaml
Steps to reproduce
authorizations
for any endpoints./gradlew clean jvmJar
Related issues/PRs
Suggest a fix
I submitted a PR to fix the issue. More work regarding the kotlin mutliplatform library needs to be done for sure though: #6983
The text was updated successfully, but these errors were encountered: