mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-20 19:37:14 +00:00
Add tests for enum names with dots in python cilents (#21374)
* add tests for enum names with dot * remove file * apply same fix to python pydantic v1 * update test
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# PonySizes
|
||||
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**type** | [**Type**](Type.md) | | [optional]
|
||||
|
||||
## Example
|
||||
|
||||
```python
|
||||
from petstore_api.models.pony_sizes import PonySizes
|
||||
|
||||
# TODO update the JSON string below
|
||||
json = "{}"
|
||||
# create an instance of PonySizes from a JSON string
|
||||
pony_sizes_instance = PonySizes.from_json(json)
|
||||
# print the JSON string representation of the object
|
||||
print PonySizes.to_json()
|
||||
|
||||
# convert the object into a dict
|
||||
pony_sizes_dict = pony_sizes_instance.to_dict()
|
||||
# create an instance of PonySizes from a dict
|
||||
pony_sizes_from_dict = PonySizes.from_dict(pony_sizes_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,16 @@
|
||||
# Type
|
||||
|
||||
|
||||
## Enum
|
||||
|
||||
* `NUMBER_2_DOT_0` (value: `2.0`)
|
||||
|
||||
* `NUMBER_1_DOT_0` (value: `1.0`)
|
||||
|
||||
* `NUMBER_0_DOT_5` (value: `0.5`)
|
||||
|
||||
* `NUMBER_0_DOT_25` (value: `0.25`)
|
||||
|
||||
[[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