William Cheng 0cc9644120
Add enum default value tests to python clients (#18883)
* add enum default value tests to python clients

* add new files
2024-06-08 17:34:57 +08:00

1.4 KiB

TestModelWithEnumDefault

Properties

Name Type Description Notes
test_enum TestEnum
test_string str [optional]
test_enum_with_default TestEnumWithDefault [optional] [default to TestEnumWithDefault.ZWEI]
test_string_with_default str [optional] [default to 'ahoy matey']
test_inline_defined_enum_with_default str [optional] [default to 'B']

Example

from petstore_api.models.test_model_with_enum_default import TestModelWithEnumDefault

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

# convert the object into a dict
test_model_with_enum_default_dict = test_model_with_enum_default_instance.to_dict()
# create an instance of TestModelWithEnumDefault from a dict
test_model_with_enum_default_from_dict = TestModelWithEnumDefault.from_dict(test_model_with_enum_default_dict)

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