mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-08 15:53:54 +00:00
* fix #11958 [BUG] python generates wrong model name and model file name Modify AbstractPythonCodegen.toModelName just like AbstractJavaCodegen.toModelName * add unit test * update samples and docs by ./bin/generate-samples.sh ./bin/utils/export_docs_generators.sh * fix AbstractPythonCodegen#toModelName logic, remove underscore * update samples and docs by ./bin/generate-samples.sh ./bin/utils/export_docs_generators.sh
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# Model_200Response
|
||||
|
||||
Model for testing model name starting with number
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | **int** | | [optional]
|
||||
**_class** | **str** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
13
samples/openapi3/client/petstore/python/docs/Model_Return.md
Normal file
13
samples/openapi3/client/petstore/python/docs/Model_Return.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# Model_Return
|
||||
|
||||
Model for testing reserved words
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**_return** | **int** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[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