We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcfd0d2 commit da6af65Copy full SHA for da6af65
openapi_python_client/parser/properties/union.py
@@ -152,9 +152,10 @@ def process_items(
152
not isinstance(sub_properties, PropertyError)
153
and len([p for p in sub_properties if isinstance(p, HasNamedClass)]) == 1
154
):
155
+ already_processed_props = sub_properties
156
157
def _use_same_name_as_parent_for_that_one_variant(index: int) -> str:
- for i, p in enumerate(sub_properties):
158
+ for i, p in enumerate(already_processed_props):
159
if i == index and isinstance(p, HasNamedClass):
160
return name
161
return _add_index_suffix_to_variant_names(index)
0 commit comments