forked from loafle/openapi-generator-original
[PYTHON] Fix for failing to lookup discriminator value using AllOf and discriminator (#18498)
* fix issue 18495 * add tests and update samples * update samples
This commit is contained in:
committed by
GitHub
parent
bd02e65f88
commit
81fab15a33
@@ -0,0 +1,28 @@
|
||||
# Info
|
||||
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**val** | [**BaseDiscriminator**](BaseDiscriminator.md) | | [optional]
|
||||
|
||||
## Example
|
||||
|
||||
```python
|
||||
from petstore_api.models.info import Info
|
||||
|
||||
# TODO update the JSON string below
|
||||
json = "{}"
|
||||
# create an instance of Info from a JSON string
|
||||
info_instance = Info.from_json(json)
|
||||
# print the JSON string representation of the object
|
||||
print Info.to_json()
|
||||
|
||||
# convert the object into a dict
|
||||
info_dict = info_instance.to_dict()
|
||||
# create an instance of Info from a dict
|
||||
info_from_dict = Info.from_dict(info_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