swagger-api / swagger-api/swagger-codegen
Customize C# code generation on File parameter
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
The C# code generator automatically converting a parameter of type "File" to "System.IO.Stream" even when I have defined custom schema definition for the "File" type. How can I override this default behavior and have the APIs return the custom object instead of Stream?
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
Start with the C# code generator's handling of the custom schema definition for the "File" type, then trace where File parameters become System.IO.Stream. Confirm whether an override is supported; done means documenting the supported customization or identifying the generator change needed for APIs to return the custom object.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100