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
  • #3135
Closed
Open
Issue created Jun 10, 2019 by Administrator@rootContributor

[Announcement][Kotlin][Retrofit][Coroutines] New generator: kotlin-retrofit

Created by: kroegerama

👋 Hello OpenAPI-Team!

I created a new generator called "kotlin-retrofit". Are you guys interested in integrating it into your repository and helping me complete/improve it?

Generator branch: kroegerama/kotlin-retrofit

Example project: Generated petstore

The main features are:

  • generates a ready to use module for Android Studio
  • only model classes, api classes and two helper classes are generated
  • supports per-route authentication (for now: ApiKey, Basic, Bearer)
  • uses kotlin data classes
  • uses moshi-codegen to parse/serialize json
  • uses retrofit 2.6 with support for suspend functions

The petstore.yaml works just fine right now. Also a few other apis that I tested.

Todos: (also see README.mustache)

  • done (allOf) add better support for json schema inheritance (allOf, anyOf, etc.)
  • support for collectionFormat (e.g. csv)
  • add OAuth functionality
  • update proguard/p8 rules for okhttp/moshi
  • option to switch coroutine generation off
  • add documentation
  • add tests

@jimschubert @wing328 @karismann @Zomzog

Assignee
Assign to
Time tracking