swagger-api / swagger-codegen

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
http://swagger.io
Apache License 2.0
16.73k stars 6.02k forks source link

swagger codegen #7022

Open naveenkumar-007 opened 6 years ago

naveenkumar-007 commented 6 years ago

two api's with same operationid, ex List is prefixed with request. the operationid is removed the prefix with --remove-operation-id-prefix command as michael cheng suggested.

Now the problem is even path also getting prefixed with the request. is there any option to remove the prefix as i did it for operationid. is there any option to remove the path prefix. Please suggest.

Description
Swagger-codegen version

swagger-codegen-2.2.3 latest stable release.

Swagger declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement
HermenOtter commented 6 years ago

@naveenkumar-007 Which language used for generation? Can you post an example of your swagger definition.

naveenkumar-007 commented 6 years ago

after the sdk is created the localVarPath is comming like localVarPath = "/GetSampleRequest_ListSamplessample instead of /sample