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
responses:
200:
description: successcontent:
text/plain:
schema:
type: stringexample: ok
The you get the following response from the generated client:
"b'ok'"
This is due to the fact the retuned body is in bytes and then the deserialisation tries to make a string of it and in newer python this generates a repr of the bytes which corresponds to this string.
The proper way would be to decode the binary body according to charset returned or ascii for all content type "text/" before any fancy handling of the swagger specific types.
Then maybe also the str conversion in serialisation can be removed for string type.
I will send a pull request solving this in a moment.