Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #5076
Closed
Open
Issue created Jan 22, 2020 by Administrator@rootContributor

[REQ] [Kotlin] client generator support for coroutines and suspend functions

Created by: NicolaeGP

Is your feature request related to a problem? Please describe.

I am trying to generate a kotlin client using retrofit 2.6.* and make use of coroutines and suspend functions but that is not given as an option in the generator

Describe the solution you'd like

Addition of a parameter in the generator that will generate a kotlin client with coroutines and suspend functions.

Describe alternatives you've considered

The addition of coroutines and suspend functions would big a big help in creating cleaner code in the applications using the generated client

Additional context

I have seen that there was a request to merge a new kotlin generator https://github.com/OpenAPITools/openapi-generator/issues/3135 that contained support for coroutines but instead it was decided to go with the current kotlin generator and add retrofit2 as supported library. However, those changes did not include the possibility of generating suspend functions.

Assignee
Assign to
Time tracking