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
import types
class RequestsOpenAPIRequestFix(RequestsOpenAPIRequest):
...
@property
def body(self) -> Optional[str]:
if self.request.body is None or isinstance(self.request.body, types.GeneratorType):
return None
if isinstance(self.request.body, bytes):
return self.request.body.decode("utf-8")
assert isinstance(self.request.body, str)
# TODO: figure out if request._body_position is relevant
return self.request.body
It can be done with Request object but if user has Request object and pass only PreparedRequest to request factory we will not be able to recreate generator and the original generator will be expired in the Request object.
Actual Behavior
When it shout check response where request data was chunked it fails.
Expected Behavior
Check everithing which can, ideally chunked body itself.
Steps to Reproduce
OpenAPI Core Version
0.17.1
OpenAPI Core Integration
requests
Affected Area(s)
unmarshaling
References
No response
Anything else we need to know?
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: