mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-05 15:36:09 +00:00
[python] Fix unnamed dicts with additional properties (#16779)
* test: Add two extra models for testing * Fix unnamed dicts with additional properties Closes #16630
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# UnnamedDictWithAdditionalModelListProperties
|
||||
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**dict_property** | **Dict[str, List[CreatureInfo]]** | | [optional]
|
||||
|
||||
## Example
|
||||
|
||||
```python
|
||||
from petstore_api.models.unnamed_dict_with_additional_model_list_properties import UnnamedDictWithAdditionalModelListProperties
|
||||
|
||||
# TODO update the JSON string below
|
||||
json = "{}"
|
||||
# create an instance of UnnamedDictWithAdditionalModelListProperties from a JSON string
|
||||
unnamed_dict_with_additional_model_list_properties_instance = UnnamedDictWithAdditionalModelListProperties.from_json(json)
|
||||
# print the JSON string representation of the object
|
||||
print UnnamedDictWithAdditionalModelListProperties.to_json()
|
||||
|
||||
# convert the object into a dict
|
||||
unnamed_dict_with_additional_model_list_properties_dict = unnamed_dict_with_additional_model_list_properties_instance.to_dict()
|
||||
# create an instance of UnnamedDictWithAdditionalModelListProperties from a dict
|
||||
unnamed_dict_with_additional_model_list_properties_form_dict = unnamed_dict_with_additional_model_list_properties.from_dict(unnamed_dict_with_additional_model_list_properties_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)
|
||||
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
# UnnamedDictWithAdditionalStringListProperties
|
||||
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**dict_property** | **Dict[str, List[str]]** | | [optional]
|
||||
|
||||
## Example
|
||||
|
||||
```python
|
||||
from petstore_api.models.unnamed_dict_with_additional_string_list_properties import UnnamedDictWithAdditionalStringListProperties
|
||||
|
||||
# TODO update the JSON string below
|
||||
json = "{}"
|
||||
# create an instance of UnnamedDictWithAdditionalStringListProperties from a JSON string
|
||||
unnamed_dict_with_additional_string_list_properties_instance = UnnamedDictWithAdditionalStringListProperties.from_json(json)
|
||||
# print the JSON string representation of the object
|
||||
print UnnamedDictWithAdditionalStringListProperties.to_json()
|
||||
|
||||
# convert the object into a dict
|
||||
unnamed_dict_with_additional_string_list_properties_dict = unnamed_dict_with_additional_string_list_properties_instance.to_dict()
|
||||
# create an instance of UnnamedDictWithAdditionalStringListProperties from a dict
|
||||
unnamed_dict_with_additional_string_list_properties_form_dict = unnamed_dict_with_additional_string_list_properties.from_dict(unnamed_dict_with_additional_string_list_properties_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