swagger-api / swagger-api/swagger-codegen
[Swift4] Unable to Download Files
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
After generating our Swagger client, we were not able to download files. We found similar issue
that was fixed in the past but it doesn't seems to works for us.
Swagger-codegen version
2.3.1
Command line used for generation
swagger-codegen generate -i swagger.json -l swift4 -o SwaggerClient/
Related issues/PRs
This is similar change but did not fix our issue.
https://github.com/swagger-api/swagger-codegen/pull/6469
Suggest a fix/enhancement
We identified our code went through AlamofireDecodableRequestBuilder instead of AlamofireRequestBuilder.
We will add a new pull request that adds the file download code to
this class.
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 by reproducing the generated Swift4 client with swagger-codegen 2.3.1 using the command and swagger.json described in the issue. Compare the generated AlamofireDecodableRequestBuilder path with AlamofireRequestBuilder and review related pull request 6469; done means generated clients can download files through the applicable builder.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100