New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
body type mismatch #963
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
In the
_get_kwargs
generated method, the body is determined as File type (because the format in my swagger definition isbinary
), but it tries to access its.to_dict
attribute (because body_type is considered as data due to the content typeapplication/x-www-form-urlencoded
), which does not exist because it is a fileOpenAPI Spec File
Desktop (please complete the following information):
Additional context
In the macro, the
arguments
macro determine the argument type of body based onendpoint.bodies[0].prop.get_type_string()
, whereas in thebody_to_kwarg
macro it determines it based onbody.body_type
, which is determined by the following:The text was updated successfully, but these errors were encountered: