You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using swagger codegen several years for Java and Node.JS projects and now implemented Python project.
We found codegen for Python doesn't preserve original names for models and variables, and converts them to underscored by default: petId => pet_id and in addition, supports or camel o pascal
But we want to preserve the case as it's working in Java/Javascript/Scala/C# based on CodegenConstants.MODEL_PROPERTY_NAMING_TYPE
Swagger-codegen version
2.4.41
Swagger declaration file content or url
Repository:
type: objectdescription: A local repo configurationproperties:
repoName:
type: stringdescription: The local repo namelocation:
type: stringdescription: The local repo locationdescription:
type: stringdescription: The local repo descriptionRepoResults:
type: objectdescription: List of local repositories configurationproperties:
RepoConfig:
type: arrayitems:
$ref: '#/definitions/Repository'
Description
We are using swagger codegen several years for Java and Node.JS projects and now implemented Python project.
We found codegen for Python doesn't preserve original names for models and variables, and converts them to underscored by default: petId => pet_id and in addition, supports or camel o pascal
But we want to preserve the case as it's working in Java/Javascript/Scala/C# based on CodegenConstants.MODEL_PROPERTY_NAMING_TYPE
Swagger-codegen version
2.4.41
Swagger declaration file content or url
Command line used for generation
Using maven with swagger-codegen-maven-plugin
Steps to reproduce
Related issues/PRs
like these PR:
#6305
#8213
Suggest a fix/enhancement
Add support for "original" type for "case" property like done for camel/snake
The text was updated successfully, but these errors were encountered: