https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

Andy Gibel

10/31/2019, 6:22 PM
is anyone using OpenAPI Swagger codegen in a KMPP project?
k

kpgalligan

10/31/2019, 6:24 PM
Haven’t tried it, but here’s something to look at: https://github.com/icerockdev/moko-network
a

Andy Gibel

10/31/2019, 6:24 PM
was just checking that out (the project in general)
OpenAPI codegen project specifically has a PR merge mentioning client generation support for kmpp though - not sure what the difference here is
k

kpgalligan

10/31/2019, 6:25 PM
Would be very interested to hear your feedback. Have had a few potential client chats where that came up
Like the “official” repo has a PR?
a

Andy Gibel

10/31/2019, 6:26 PM
yes
k

kpgalligan

10/31/2019, 6:26 PM
Oh. Hard to keep up. Writing a talk on “libraries”. Need to change my slides again…
a

Andy Gibel

10/31/2019, 6:26 PM
let me dig up the PR to make sure I didn't misunderstand
k

kpgalligan

10/31/2019, 6:28 PM
Interesting, thanks!
m

Michal Harakal

10/31/2019, 7:26 PM
@Andy Gibel thats great, I will give it definitelly a try, I was using swagger generate API module before….
a

alex009

11/01/2019, 2:08 AM
moko-network use OpenAPI Generator underhood, but when we develop it in original generator no support of kotlin-client. For now moko-network give simplified configuration & additional classes from moko-network runtime with some fixes of ktor-client, additions to kotlin-serialization. If you try both and give pros and cons - it will be great 🙂