-
Notifications
You must be signed in to change notification settings - Fork 6k
C# code gen api path encoding problem #4977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@muralidharalladi please share the spec so that we can more easily reproduce the issue. |
{ |
@muralidharalladi the issue should be fixed via #5112. Please pull the latest master to give it a try. |
Description
we are getting "C# code gen api path encoding problem". We have composite key in model.
API Path in swagger json: /Resources(City='{City}',State='{State}')
API Path in c# gen Api file: /Resources(City= ;' ;{City}' ;,State= ;' ;{State}' ;)
= --> "= ;"
' --> "' ;"
we are getting error in below code gen file
https://github.com/swagger-api/swagger-codegen/blob/master/modules/swagger-codegen/src/main/resources/csharp/api.mustache
var localVarPath = "{{path}}";
Swagger-codegen version
Swagger Editor
Swagger declaration file content or url
Command line used for generation
Steps to reproduce
Related issues
Suggest a Fix
In java client codegen file showing correct but in C# client codegen file api path is encoding.
We want same behaviour as java client.
The text was updated successfully, but these errors were encountered: