mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 00:22:43 +00:00
[Python] Bug Fix - model_generic templates to have valid imports for polymorphism (#20273)
* fix model_generic python templates to have valid imports for polymorphism * update samples * update samples --------- Co-authored-by: yugi <yugi-big@proton.me>
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# HuntingDog
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**is_trained** | **bool** | | [optional]
|
||||
|
||||
## Example
|
||||
|
||||
```python
|
||||
from petstore_api.models.hunting_dog import HuntingDog
|
||||
|
||||
# TODO update the JSON string below
|
||||
json = "{}"
|
||||
# create an instance of HuntingDog from a JSON string
|
||||
hunting_dog_instance = HuntingDog.from_json(json)
|
||||
# print the JSON string representation of the object
|
||||
print(HuntingDog.to_json())
|
||||
|
||||
# convert the object into a dict
|
||||
hunting_dog_dict = hunting_dog_instance.to_dict()
|
||||
# create an instance of HuntingDog from a dict
|
||||
hunting_dog_from_dict = HuntingDog.from_dict(hunting_dog_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