Zishun (Zack) Wei 453facc81c
Fix 18271: Circular imports on AllOf generation with REFACTOR_ALLOF_WITH_PROPERTIES_ONLY=True (#18272)
* fix issue 18271

* the same update for python-pydantic-v1

* add test

* update samples

* update samples

* put properties under allOf for python client tests

* update samples

* add a test in test model
2024-04-08 19:01:01 +08:00

1.0 KiB

CircularAllOfRef

Properties

Name Type Description Notes
name str [optional]
second_circular_all_of_ref List[SecondCircularAllOfRef] [optional]

Example

from petstore_api.models.circular_all_of_ref import CircularAllOfRef

# TODO update the JSON string below
json = "{}"
# create an instance of CircularAllOfRef from a JSON string
circular_all_of_ref_instance = CircularAllOfRef.from_json(json)
# print the JSON string representation of the object
print CircularAllOfRef.to_json()

# convert the object into a dict
circular_all_of_ref_dict = circular_all_of_ref_instance.to_dict()
# create an instance of CircularAllOfRef from a dict
circular_all_of_ref_form_dict = circular_all_of_ref.from_dict(circular_all_of_ref_dict)

[Back to Model list] [Back to API list] [Back to README]