-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
[REQ][kotlin-spring] Add possibility to turn off Flow usage when reactive=true #16130
Comments
+1 |
1 similar comment
+1 |
If anyone would like to contribute or sponsor a PR for this enhancement, please reply to let us know. Thank you. |
@wing328 I took it, will try to implement |
@wing328 hello. Actually I fucked up a bit. The point is that collection endpoints were generated without |
…th useFlowForArrayReturnType = false (OpenAPITools#16130)
Is your feature request related to a problem? Please describe.
We want to use
suspend
functions for methods returning single objects, but also we want to use common return types (e.g.List
) for methods returning collections.Our UI can not work with JSON streams at the moment.
On Spring 5
Flow
was collected toList
internally whenContent-Type
isapplication/json
, but in Spring 6 this functionality is removed, so we need to returnList
explicitly.Describe the solution you'd like
Some option like
useFlowForArrayReturnType
which will turn on/off usingFlow
. Possibly it should be considered only ifreactive
is set to true.The text was updated successfully, but these errors were encountered: