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 @@
|
||||
# PrimitiveString
|
||||
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**value** | **str** | | [optional]
|
||||
|
||||
## Example
|
||||
|
||||
```python
|
||||
from petstore_api.models.primitive_string import PrimitiveString
|
||||
|
||||
# TODO update the JSON string below
|
||||
json = "{}"
|
||||
# create an instance of PrimitiveString from a JSON string
|
||||
primitive_string_instance = PrimitiveString.from_json(json)
|
||||
# print the JSON string representation of the object
|
||||
print PrimitiveString.to_json()
|
||||
|
||||
# convert the object into a dict
|
||||
primitive_string_dict = primitive_string_instance.to_dict()
|
||||
# create an instance of PrimitiveString from a dict
|
||||
primitive_string_from_dict = PrimitiveString.from_dict(primitive_string_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