OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
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.
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.