mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-09 08:46:10 +00:00
[python] change Private attr to Class vars (#16687)
* [python] fix TypeError Signed-off-by: ふぁ <yuki@yuki0311.com> * [python] update Private model attributes to Class vars Signed-off-by: ふぁ <yuki@yuki0311.com> * [python] rename the List of test cases to ListClass Signed-off-by: ふぁ <yuki@yuki0311.com> * [python] update samples Signed-off-by: ふぁ <yuki@yuki0311.com> * [python] rename the List of v1 test cases to ListClass Signed-off-by: ふぁ <yuki@yuki0311.com> * [python] rename the List of v1-aiohttp test cases to ListClass Signed-off-by: ふぁ <yuki@yuki0311.com> * update samples --------- Signed-off-by: ふぁ <yuki@yuki0311.com> Co-authored-by: William Cheng <wing328hk@gmail.com>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# ListClass
|
||||
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**var_123_list** | **str** | | [optional]
|
||||
|
||||
## Example
|
||||
|
||||
```python
|
||||
from petstore_api.models.list_class import ListClass
|
||||
|
||||
# TODO update the JSON string below
|
||||
json = "{}"
|
||||
# create an instance of ListClass from a JSON string
|
||||
list_class_instance = ListClass.from_json(json)
|
||||
# print the JSON string representation of the object
|
||||
print ListClass.to_json()
|
||||
|
||||
# convert the object into a dict
|
||||
list_class_dict = list_class_instance.to_dict()
|
||||
# create an instance of ListClass from a dict
|
||||
list_class_form_dict = list_class.from_dict(list_class_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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user