Hi all, I've recently started to play with Ktor (c...
# ktor
y
Hi all, I've recently started to play with Ktor (coming from SpringBoot), and the 1st problem I'm facing is in regarding to my general approach of setting up openapi specification and generate both client and server from the code. When using SpringBoot I can generate the network models and the routes as interfaces, and implement the interface so it's guaranteed that my implementation matching the specification. However, in the current OpenaAPI generator what I will get from the code is something like:
Copy code
fun Application.configureRouting() {
    routing {
        get("/") {
            call.respondText("Hello World!")
        }
    }
}
This is nice and all, but it means that ones the API is evolve I cannot just simply regenerate the code and implement it. I've though about this topic alot (mainly about how can the openapi generator be evolved) but I'm not sure if I have any good ideas at this point as Ktor is fully based on extension functions and DSLs so you cannot just define the interfaces sad panda I'd be happy to hear any thoughts ! 🙏