Files
openapi-generator/samples/openapi3/client/petstore/python-httpx/docs/TestModelWithEnumDefault.md
Alex Kondratev bab5ca2452 [python] add async httpx support (#22021)
* [python] fix #19255 add async httpx support

* update docs

* 1. "async" parameter for templates
2. hand written tests for python-httpx
3. CI workflow updated

* fix mypy
2025-09-27 15:30:50 +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]