-
-
Notifications
You must be signed in to change notification settings - Fork 524
WebFlux handlers using kotlin coroutines do not produce response documentation #351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@joaodias14 JFYI... |
Hi @jnfeinstein, honestly we never noticed that until now :D. |
Hi @jnfeinstein, I opened a PR to fix the issue. If you will, take a look and suggest any change you find relevant. Thanks! |
Thank you @joaodias14 for your help. |
We're loading 1.2.27 now! Thank you @joaodias14 and @bnasslahsen. |
Guys, hi! I'am using springdoc-openapi-webflux-ui:1.2.30 lib and still have an issue:
and still has a required parameter $completion of request and ContinuationObject and CoroutineContext in schema section. P.S. I'am using GroupedOpenAPI |
@neonomaly do you have the kotlin extension installed? |
With springdoc-openapi-kotlin everything ok. Thank you! |
I've created a demo application here.
I believe the issue is related to this line. The return type for the
mono
implementation isreactor.core.publisher.Mono<com.example.demo.SystemStatusResponse>
whereas the return type for the coroutine implementation isclass java.lang.Object
. It appears that the correct response type is locked away somewhere in the parameters:kotlin.coroutines.Continuation<? super com.example.demo.SystemStatusResponse> continuation
.The text was updated successfully, but these errors were encountered: