Skip to content

Commit bb9c3f3

Browse files
natslee-elenbaas
authored andcommitted
Include parameter description from parent schema in Property object
1 parent 8c4397f commit bb9c3f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

openapi_python_client/parser/properties/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,8 @@ def _property_from_ref(
595595
)
596596
if parent:
597597
prop = attr.evolve(prop, nullable=parent.nullable)
598+
if parent.description:
599+
prop = attr.evolve(prop, description=parent.description)
598600
if isinstance(prop, EnumProperty):
599601
default = get_enum_default(prop, parent)
600602
if isinstance(default, PropertyError):

0 commit comments

Comments
 (0)