springdoc/springdoc.github.io

Kotlin module for v2?

bkielczewski opened this issue · 4 comments

In v2.0.0 there seems to be no Kotlin module, yet the doc mentions otherwise. Latest on Maven Central is 1.6.13.

Ok, thanks, but https://springdoc.org/v2/#kotlin-support bit is confusing.

This bit exactly (my use case):

If you are using spring-webflux, you should combine the springdoc-openapi-kotlin module with springdoc-openapi-starter-webflux-ui.

Also, springdoc-openapi-starter-common seems to be a dependency of springdoc-openapi-starter-webflux-ui, so that should be ok for Kotlin support. However, when I'm using suspend function on rest endpoint I get documentation for $completion parameter there. Should I file a bug report for regression (wasn't like that in v1)?

@bkielczewski,

I understand that your point is related to documentation.
I have updated it.

For the supend issue report, you can see for example this test: https://github.com/springdoc/springdoc-openapi/blob/2.x/springdoc-openapi-tests/springdoc-openapi-kotlin-tests/src/test/kotlin/test/org/springdoc/api/app3/SystemStatusController.kt

The openAPI spec is generated just correctly.

If you want to report an issue, just make sure you provide a Minimal, Reproducible Example - with HelloController that reproduces the problem