swagger-api / swagger-api/swagger-codegen

Generated C# code uses RestSharp 105.1.0 which has a bug in its Proxy imlementation

Open
#10,469 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

The current version of swagger-codegen uses RestSharp 105.1.0 for its C# generation. RestSharp 105.1.0 has a known bug in its Proxy-implementation. A later 106.x has fixed this bug. Could you please update this dependency. If I manually change the RestSharp.dll I can't compile the generated code.

Swagger-codegen version

swagger-codegen-cli-2.4.15, swagger-codegen-cli-3.0.21

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect the C# generator's dependency declarations and the generated project metadata for the RestSharp 105.1.0 reference. Verify the dependency can be updated to a 106.x release and that generated C# code compiles with the updated library.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.