Open scott-lin opened 5 years ago
@scott-lin sorry for taking so long to triage the issues/PRs. I'm just now finding free time after moving into my first new home.
Would you be able to provide an example of how you'd expect to see such a method with multiple possible return types defined? I have an idea or two, but they'd be borrowed from Scala and may not be ideal for C#.
For the PHP example you've linked, it's a different beast because that's technically a dynamic language, so I unfortunately couldn't model after that approach unless the return type was Object
.
Description
When multiple responses are present in a v3 OpenAPI document with differing types, only the first one is respected when C# client SDK is generated.
openapi-generator version
3.3.3
OpenAPI declaration file content or url
Command line used for generation
openapi-generator generate -g csharp -i .\openapi.json -o .\output
Related issues/PRs
I see similar issues for other languages, but perhaps C# isn't enhanced yet?