https://kotlinlang.org logo
#ktor
Title
# ktor
l

levinotik

11/17/2023, 11:59 PM
There seems to be a few different options for OpenAPI spec generation with Ktor. Curious what people are using. I've seen https://bkbn.gitbook.io/kompendium among several others.
s

suresh

11/20/2023, 7:06 PM
I you are using IntelliJ ultimate, ktor plugin provides an option to generate OpenAPU spec - https://www.jetbrains.com/help/idea/ktor.html#generate-openapi In my experience it has some issues generating proper spec and also you have to re-generate whenever your route config changes.
m

Michael Sewell

11/23/2023, 9:22 AM
I concur with this take on the question from a while ago.
s

suresh

11/23/2023, 4:54 PM
Micronaut does pretty decent job of generating the spec at compile time - https://micronaut-projects.github.io/micronaut-openapi/latest/guide/ without too much additional swagger meta annotations (Which i found distracting and too verbose).
3 Views