OpenAPITools / OpenAPITools/openapi-generator
[BUG] multi file upload not implemented fully
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Description
Trying to generate an api client that supports multiple mutlipart upload at the same time (i don't think it's relevant what client, but for reference it is typescript-fetch) however the generator-cli is falling onto java code that isn't implemented - so isn't generating the right api code
openapi-generator version
4.3.1
The offending part of code:
https://github.com/OpenAPITools/openapi-generator/blob/a2a1ac93a4f22c0b65b1db9f185ab4fbcad3cc6e/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java#L5660
There's even a //todo against it 😁
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 in modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java at the linked TODO around line 5660, then reproduce the issue through generator-cli with the typescript-fetch generator and a multi-file multipart request. Done means the generated client correctly supports simultaneous multipart uploads instead of falling back to unimplemented Java behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi, typescript
- Domain
- api, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100