cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
397 stars 132 forks source link

text/json response type should be handled as JSON instead of text #75

Closed vadjs closed 4 years ago

vadjs commented 4 years ago

0.7.2 -> 0.8.0 During this update response types of request builders was broken. The reasiest way to see the bug is this gist. Here are swagger.json file that reproduces bug and broken methods.

Problem is that in new vesrion RequestBuilder parameter responseType was changed from json to text.

luisfpg commented 4 years ago

Actually, what broke it was that text/json is not a valid response type, and is confusing the generator to be plain text. Will be fixed in 0.8.1.