Files
openapi-generator/samples/openapi3/client/petstore/python-aiohttp/docs/EnumRefWithDefaultValue.md
William Cheng 7b3de8dbce [python] fix default value when enum is a reference (#21923)
* fix default value when enum is ref (python)

* update spec
2025-09-09 09:21:09 +08:00

1.1 KiB

EnumRefWithDefaultValue

Properties

Name Type Description Notes
report_format DataOutputFormat [optional] [default to DataOutputFormat.JSON]

Example

from petstore_api.models.enum_ref_with_default_value import EnumRefWithDefaultValue

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

# convert the object into a dict
enum_ref_with_default_value_dict = enum_ref_with_default_value_instance.to_dict()
# create an instance of EnumRefWithDefaultValue from a dict
enum_ref_with_default_value_from_dict = EnumRefWithDefaultValue.from_dict(enum_ref_with_default_value_dict)

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