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
{{ message }}
Repository navigation
JSON response returned as string instead of dict (Flask integration) #6
I think the issue might be due to the fact that the client.request method is returning a raw string instead of a JSON object. Could you try checking the client.request method in openapi_python_sdk.client to see if it's explicitly returning a string or if there's an option to enable automatic JSON decoding?
Reacted by Francesco Bianco (yafb) and Ilyas Fardaoui
We’re currently working on improving the test suite around this area, so things are still being refined. For now, we’re happy to accept any useful contributions that help move this forward.
Feel free to share ideas or open follow-up PRs if you find something that works well.
Activity
Deadpool2000 commentedon Mar 18, 2026
Hey @francescobianco
Check this PR #12
IlyasFardaouix commentedon Mar 19, 2026
I think the issue might be due to the fact that the
client.requestmethod is returning a raw string instead of a JSON object. Could you try checking theclient.requestmethod inopenapi_python_sdk.clientto see if it's explicitly returning a string or if there's an option to enable automatic JSON decoding?francescobianco commentedon Mar 24, 2026
Good point, thanks @IlyasFardaouix for digging into this.
We’re currently working on improving the test suite around this area, so things are still being refined. For now, we’re happy to accept any useful contributions that help move this forward.
Feel free to share ideas or open follow-up PRs if you find something that works well.