Add enum default value tests to python clients (#18883)

* add enum default value tests to python clients

* add new files
This commit is contained in:
William Cheng
2024-06-08 17:34:57 +08:00
committed by GitHub
parent a5a99585ef
commit 0cc9644120
53 changed files with 1583 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
# TestEnum
## Enum
* `ONE` (value: `'ONE'`)
* `TWO` (value: `'TWO'`)
* `THREE` (value: `'THREE'`)
* `FOUR` (value: `'foUr'`)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -0,0 +1,14 @@
# TestEnumWithDefault
## Enum
* `EIN` (value: `'EIN'`)
* `ZWEI` (value: `'ZWEI'`)
* `DREI` (value: `'DREI'`)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -0,0 +1,33 @@
# TestModelWithEnumDefault
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**test_enum** | [**TestEnum**](TestEnum.md) | |
**test_string** | **str** | | [optional]
**test_enum_with_default** | [**TestEnumWithDefault**](TestEnumWithDefault.md) | | [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
```python
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]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)