Skip to content

Commit b2c73fd

Browse files
author
Adam Gray
committed
a few missed names
1 parent a1a154b commit b2c73fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

openapi_python_client/openapi_parser/properties.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ def to_string(self) -> str:
3636
default = None
3737

3838
if default is not None:
39-
return f"{self.name}: {self.get_type_string()} = {self.default}"
39+
return f"{self.python_name}: {self.get_type_string()} = {self.default}"
4040
else:
41-
return f"{self.name}: {self.get_type_string()}"
41+
return f"{self.python_name}: {self.get_type_string()}"
4242

4343
def transform(self) -> str:
4444
""" What it takes to turn this object into a native python type """
45-
return self.name
45+
return self.python_name
4646

4747
def constructor_from_dict(self, dict_name: str) -> str:
4848
""" How to load this property from a dict (used in generated model from_dict function """

0 commit comments

Comments
 (0)