openapi-generator
openapi-generator copied to clipboard
[BUG][typescript-angular] Can't handle multiple responses
Bug Report Checklist
- [ ] Have you provided a full/minimal spec to reproduce the issue?
- [x] Have you validated the input using an OpenAPI validator (example)?
- [x] Have you tested with the latest master to confirm the issue still exists?
- [x] Have you searched for related issues/PRs?
- [ ] What's the actual output vs expected output?
- [ ] [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
According to the OpenAPI specification it is possible to have multiple response objects per request. The generated code does not represent that.
openapi-generator version
6.1.0 and also reproduced on master
OpenAPI declaration file content or url
TBD
Generation Details
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -i modules/openapi-generator-cli/openapi.yml -g typescript-angular -o typescript-angular
Steps to reproduce
Run the command and check the generated code.
Related issues/PRs
https://github.com/OpenAPITools/openapi-generator/issues/5099 https://github.com/OpenAPITools/openapi-generator/issues/1096
Suggest a fix
TBD