You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code will generate valid openapi json file:
// an extension method that creates some routesfun Kooby.helloRoute() {
get("/hello") { "world" }
}
funmain(args:Array<String>) {
runApp(args) {
// calling the extension method
helloRoute()
}
}
as long as Kooby.helloRoute() method is written in the same compilation unit as main() in App.kt.
If I move Kooby.helloRoute() to another file, the generated openapi json will contain an empty paths section, although browsing to http://localhost:8080/hello still gets world.
The text was updated successfully, but these errors were encountered:
The following code will generate valid openapi json file:
as long as
Kooby.helloRoute()
method is written in the same compilation unit asmain()
inApp.kt
.If I move
Kooby.helloRoute()
to another file, the generated openapi json will contain an emptypaths
section, although browsing tohttp://localhost:8080/hello
still getsworld
.The text was updated successfully, but these errors were encountered: