Skip to content

Commit 8d6d644

Browse files
Reuse variable
1 parent 284a750 commit 8d6d644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi_python_client/templates/endpoint_macros.py.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ params: Dict[str, Any] = {
3838
params.update({{ property_name }})
3939
{% else %}
4040
if {% if not property.required %}not isinstance({{ property_name }}, Unset){% endif %}{% if not property.required and property.nullable %} and {% endif %}{% if property.nullable %}{{ property_name }} is not None{% endif %}:
41-
params.update({{ "json_" + property.python_name }})
41+
params.update({{ property_name }})
4242
{% endif %}
4343
{% endif %}
4444
{% endfor %}

0 commit comments

Comments
 (0)