You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered: