OpenAPI - What would you recommend for generating ...
# ktor
s
OpenAPI - What would you recommend for generating a Ktor client library?
a
Do you mean to generate stubs for the methods for the respective server endpoints?
s
No not server, client. I tried
openapi-generator generate -g kotlin
and am now messing with find/replace to avoid usage of
com.squareup.moshi.Json
& `import com.squareup.moshi.JsonClass`; in favour of the approaches recommended for ktor serialisation. NOTE:
moshi
doesn't support much - https://github.com/square/moshi/issues/1827 EDIT1: The find/replace I guess worked and now I get fat errors https://github.com/SamuelMarks/openfoodfacts-kotlin-openapi/commit/fd6749989a2fa41c67d4e7731485d2dbbc2c813d