Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPITools/openapi-generator support #491

Open
AlexTrotsenko opened this issue Nov 29, 2023 · 2 comments
Open

OpenAPITools/openapi-generator support #491

AlexTrotsenko opened this issue Nov 29, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@AlexTrotsenko
Copy link

Is your feature request related to a problem? Please describe.
Many apps uses Swagger/OpenAPI Specification and OpenAPITools codegen when communicating over http to BackEnd.

Currently migrating existing Retrofit-based app to Ktorfit seems relatively easy task.

However it can't be done for the apps, which are using auto-generated retrofit interface from Swagger definition: manual change is not possible since normally Swagger definition is being regularly updated.

Describe the solution you'd like
Add Ktorfit library support (should be similar to the existing jvm-retrofit2) to the Kotlin generator.

Describe alternatives you've considered
There is old multiplatform library option, but that one uses "raw" Ktor api and seems to be not very up-to-date (e.g. Ktor 1.6.7 client is mentioned in the docs).

Additional context
As far as I see, simple mustache templates are used to customise code generation. Existing jvm-retrofit2 and multiplatform options could be used as the starting point.

E.g. Example of adding kotlinx-datetime to the "old" multiplatform codegen
https://github.com/OpenAPITools/openapi-generator/pull/17166/files.

@AlexTrotsenko AlexTrotsenko added the enhancement New feature or request label Nov 29, 2023
@armond-avanes
Copy link

Is there any update on this?

@Foso
Copy link
Owner

Foso commented Aug 11, 2024

I like the idea, but i don't have time for it. When someone else want to implement it, go for it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants