swagger-api / swagger-api/swagger-codegen
[typescript-angular] can't handle strings as return value (Http failure during parsing)
Open
@HugoMario is already working on this.
Since May 8, 2020.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
When the return type of controller method is string, parsing fails as default behavior tries to parse the response data as JSON.
v3.0.13
Adding responseType: "text" to the http get options fixes the problem as a workaround.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.