We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 10c73b4 + 43527b0 commit dc8e1aeCopy full SHA for dc8e1ae
src/openapi_python_generator/language_converters/python/templates/aiohttp.jinja2
@@ -21,6 +21,13 @@ async def {{ operation_id }}({{ params }}) -> {% if return_type.type is none or
21
'{{ method }}',
22
base_path + path,
23
params=query_params,
24
+ {% if body_param %}
25
+ {% if use_orjson %}
26
+ data=orjson.dumps({{ body_param }})
27
+ {% else %}
28
+ json = {{ body_param }}
29
+ {% endif %}
30
31
) as inital_response:
32
if inital_response.status != {{ return_type.status_code }}:
33
raise HTTPException(inital_response.status, f'{{ operationId }} failed with status code: {inital_response.status}')
0 commit comments