swagger-api / swagger-api/swagger-codegen

[CSharp] Generated code from Swagger Codegen 3.0.23 doesn't build

Open
#10,588 1 comment 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 generated C# code produced by Swagger Codegen CLI v3.0.23 doesn't build

Swagger-codegen version

v3.0.23

Swagger declaration file content or url

https://petstore3.swagger.io/api/v3/openapi.json

Command line used for generation
java -jar "C:\Temp\swagger-codegen-cli.jar" generate -l csharp --input-spec "https://petstore3.swagger.io/api/v3/openapi.json" --output "C:\projects\PetStoreApiClient"

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

Reproduce the report with Swagger Codegen CLI v3.0.23, the petstore3 OpenAPI URL, and the provided csharp generation command. Inspect the generated C# project and its build output to identify the failure; done means the generated PetStoreApiClient builds successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, java, openapi
Domain
devtools, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.