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
However _get_kwargs doesn't properly convert the boolean to a string/byte representaion in order for httpx to safely consume them.
Instead they are passed as is.
Resuling in an AttributeError: 'bool' object has no attribute 'encode' To Reproduce
1- Generate the python client from the openapi spec.
2- Invoke this simple request
Closes#552.
BREAKING CHANGE: Header values will be explicitly transformed or omitted instead of blindly passed to httpx as-is.
Co-authored-by: John Sorial <[email protected]>
Co-authored-by: dbanty <[email protected]>
Closes#552.
BREAKING CHANGE: Header values will be explicitly transformed or omitted instead of blindly passed to httpx as-is.
Co-authored-by: John Sorial <[email protected]>
Co-authored-by: dbanty <[email protected]>
Closes#552.
BREAKING CHANGE: Header values will be explicitly transformed or omitted instead of blindly passed to httpx as-is.
Co-authored-by: John Sorial <[email protected]>
Co-authored-by: dbanty <[email protected]>
Describe the bug
Httpx expects headers to be of the following type
However _get_kwargs doesn't properly convert the boolean to a string/byte representaion in order for httpx to safely consume them.
Instead they are passed as is.
Resuling in an AttributeError: 'bool' object has no attribute 'encode'
To Reproduce
1- Generate the python client from the openapi spec.
2- Invoke this simple request
Expected behavior
A sucessfull resposone.
OpenAPI Spec File
boolean_openapi_header.txt
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: