OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.69k stars 6.55k forks source link

[REQ][kotlin-spring] Add possibility to turn off Flow usage when reactive=true #16130

Open hu553in opened 1 year ago

hu553in commented 1 year ago

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 to List internally when Content-Type is application/json, but in Spring 6 this functionality is removed, so we need to return List explicitly.

Describe the solution you'd like

Some option like useFlowForArrayReturnType which will turn on/off using Flow. Possibly it should be considered only if reactive is set to true.

jeferro commented 10 months ago

+1

sekaninovam commented 6 months ago

+1

wing328 commented 6 months ago

If anyone would like to contribute or sponsor a PR for this enhancement, please reply to let us know. Thank you.