Fix Python codegen in specific additionalProperties case. (#17659)

* Fix Python codegen is specific additionalProperties case.

* Add generated test files.

* Apply fix to AbstractPythonPydanticV1Codegen.java.
This commit is contained in:
Jonathan Klaassen
2024-02-05 06:17:14 -08:00
committed by GitHub
parent 334ddca021
commit 6bcf8cd332
43 changed files with 1514 additions and 6 deletions

View File

@@ -0,0 +1,28 @@
# InputAllOf
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**some_data** | [**Dict[str, Tag]**](Tag.md) | | [optional]
## Example
```python
from petstore_api.models.input_all_of import InputAllOf
# TODO update the JSON string below
json = "{}"
# create an instance of InputAllOf from a JSON string
input_all_of_instance = InputAllOf.from_json(json)
# print the JSON string representation of the object
print InputAllOf.to_json()
# convert the object into a dict
input_all_of_dict = input_all_of_instance.to_dict()
# create an instance of InputAllOf from a dict
input_all_of_form_dict = input_all_of.from_dict(input_all_of_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)

View File

@@ -0,0 +1,28 @@
# PropertyMap
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**some_data** | [**Dict[str, Tag]**](Tag.md) | | [optional]
## Example
```python
from petstore_api.models.property_map import PropertyMap
# TODO update the JSON string below
json = "{}"
# create an instance of PropertyMap from a JSON string
property_map_instance = PropertyMap.from_json(json)
# print the JSON string representation of the object
print PropertyMap.to_json()
# convert the object into a dict
property_map_dict = property_map_instance.to_dict()
# create an instance of PropertyMap from a dict
property_map_form_dict = property_map.from_dict(property_map_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)