Description
If you define multiple responses, the codegen will only support the first one (typically 200).
openapi-generator version
5.0.0-SNAPSHOT
OpenAPI declaration file content or url

Correctly generate the return-object based on the HTTP Status Code in the Response.
Similar Issue for PHP
link