You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function attemps to do serde_json::from_str(&content).map_err(Error::from) on a response marked text/plain, which causes crash (since the json expects to see a quote surrounded string, not a plain string)
Expected output: return Ok(content.to_string()) instead of attempting json parse of text/plain response
Steps to reproduce
Related issues/PRs
Nothing about text/plain vs. json confusion
Suggest a fix
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
Description
Generated code attempts to use JSON to read a
text/plain
string response.openapi-generator version
Used docker
latest
versionOpenAPI declaration file content or url
https://github.com/SeekStorm/SeekStorm/blob/42810560e4cbb22a6ad59cfd31c65c837e5a223e/src/seekstorm_server/openapi/openapi.yml#L110-L112
Generation Details
https://github.com/liquidinvestigations/hoover3/blob/bea9f7ba9a297ed8845dea2650ce254d67fdb6ff/packages/seekstorm-client/generate.sh
Results in this function
https://github.com/liquidinvestigations/hoover3/blob/bea9f7ba9a297ed8845dea2650ce254d67fdb6ff/packages/seekstorm-client/src/apis/api_key_api.rs#L67
The function attemps to do
serde_json::from_str(&content).map_err(Error::from)
on a response markedtext/plain
, which causes crash (since the json expects to see a quote surrounded string, not a plain string)Expected output: return
Ok(content.to_string())
instead of attempting json parse of text/plain responseSteps to reproduce
Related issues/PRs
Nothing about
text/plain
vs.json
confusionSuggest a fix
The text was updated successfully, but these errors were encountered: