swagger-api / swagger-api/swagger-codegen
CSharp client build fails if the swagger definition contains a class named ValidationResult
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
Swagger-codegen version
fork in my repo but repros in latest.
Swagger declaration file content or url
unavailable (company confidential)
Command line used for generation
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i http://localhost:8080/swagger/docs/v1 -l csharp -o /Users/ben/Projects/UC.App/UC.Api
Steps to reproduce
- Have a swagger definition with a class named ValidationResult
- Compile it (it works)
- Try to compile the generated csharp project
- Build fails.
Related issues
none AFAIK
Suggest a Fix
Easy fix by explicitly implementing IValidatableObject interface. Will be sending PR shortly.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Run the provided swagger-codegen CLI command with a definition containing a class named ValidationResult, then inspect the generated C# project and its build failure. The work is done when the generated project compiles for that definition; the confidential input means the exact failure cannot be reproduced from the issue alone.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, java
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100