when multiple content types are generated or when anyways oneOf / allOf is used in response type, swagger provider results in 'obj' response type, or request type also (e.g. with json , text, and other formts, does not filter only application/json but breaks and returns object)
Repro steps
Please provide the steps required to reproduce the problem
Type provider type definition with parameters
type ChangeApi = OpenApiClientProvider<"test.yaml">
Description
when multiple content types are generated or when anyways
oneOf
/allOf
is used in response type, swagger provider results in 'obj' response type, or request type also (e.g. with json , text, and other formts, does not filter only application/json but breaks and returns object)Repro steps
Please provide the steps required to reproduce the problem
https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/
Expected behavior
instead of object, swagger provider can pick the first matching json specifications for returned responses, or for accepted requests
Actual behavior
obj
replaces the type in the signature of the method, either response type or parameter typeKnown workarounds
build the object externally and pass it as object, if serializer handles it, it should still work
Affected Type Providers
Related information