Skip to content

C# code gen api path encoding problem #4977

@muralidharalladi

Description

@muralidharalladi
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&#x3D ;&#39 ;{City}&#39 ;,State&#x3D ;&#39 ;{State}&#39 ;)
= --> "&#x3D ;"
' --> "&#39 ;"

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions