Kompendium (<https://github.com/bkbnio/kompendium>...
# ktor
r
Kompendium (https://github.com/bkbnio/kompendium) was archived yesterday. That is unfortunate as it was an amazing tool to implement a code-first approach to OpenAPI with ktor. Does anyone have other good code-first OpenAPI solutions?
😢 1
I'm not really intending to maintain a fork, but I did publish a version with the unpublished Ktor 3.x support, as well as some other minor changes ()https://github.com/bkbnio/kompendium/compare/main...rocketraman:kompendium:main. GitHub packages have the release 4.0.5.
f
At work we maintain a fork of another such library https://github.com/navikt/ktor-openapi-generator
r
Seems like it is Jackson only? Does it support kotlinx-serialization?
f
Only jackson per now
f
Hey @rocketraman what did you end up going with here? I'm trying to adopt an openapi generator for the first time in my ktor 3.x project and it doesn't seem like the official generator offers enough fine grained control. I work on a small team so would prefer not to maintain a fork, if you have any suggestions!
r
Yeah the official generator is pretty lacking. For now I'm sticking with kompendium, in the absence of any better solutions. My fork with minor updates works well with 3.1.x so for now I'll maintain it.
f
Ended up going with https://github.com/SMILEY4/ktor-openapi-tools which supports ktor 3.1 and works with kotlinx-serialization it seems to work pretty well but I'm just rolling it out now
👍 2
r
Nice, its general approach looks very similar to Kompendium, which is great. Docs look good. Thanks for the reference.
👍 1