Confusion with the Request.body type #824
Unanswered
berislavlopac
asked this question in
Q&A
Replies: 1 comment
-
that's definitely an issue with doctoring, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On this line:
openapi-core/openapi_core/protocols.py
Line 20 in 44b8b3c
the type of the
BaseRequest.body
property is defined asOptional[bytes]
; however, the docstring of theRequest
protocol (which inheritsbody
fromBaseRequest
) says:I'm currently having some issue with the validation, but it's not clear which direction should I go with the solution -- should
body
bebytes
orstr
? Have I missed something? Thank you!Beta Was this translation helpful? Give feedback.
All reactions