Skip to content

Commit 04f43f0

Browse files
Rename var
1 parent b1b7dba commit 04f43f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openapi_python_client/parser/properties/model_property.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ModelProperty(Property):
2020
_json_type_string: ClassVar[str] = "Dict[str, Any]"
2121

2222
template: ClassVar[str] = "model_property.pyi"
23-
is_dict: ClassVar[bool] = True
23+
json_is_dict: ClassVar[bool] = True
2424

2525
def get_base_type_string(self) -> str:
2626
return self.reference.class_name

openapi_python_client/templates/endpoint_macros.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ params: Dict[str, Any] = {
3535
{% if not property.required or property.nullable %}
3636
{% set property_name = "json_" + property.python_name if property.template else property.python_name %}
3737
if {% if not property.required %}not isinstance({{ property_name }}, Unset) and {% endif %}{{ property_name }} is not None:
38-
{% if property.is_dict %}
38+
{% if property.json_is_dict %}
3939
params.update({{ property_name }})
4040
{% else %}
4141
params["{{ property.name }}"] = {{ property_name }}

0 commit comments

Comments
 (0)