OpenAPITools / OpenAPITools/openapi-generator

multi-part form does not call request.sendMultipartForm in vertx client

Open
#9,753 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Description

After generating the vertx client using the openApi, I am not able to send a multipart for using the content-type:

"multipart/form-data"

Instead a method to request.sendForm override the contenType to "application/x-www-form-urlencoded"

I can see that the method:

void sendMultipartForm(MultipartForm var1, Handler<AsyncResult<HttpResponse<T>>> var2);

has never been called and the MultipartForm has not been generated

openapi-generator version

Version 5.1.1

OpenAPI declaration file content or url
Command line used for generation

Maven plugin for java

Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement

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

Start at the Vert.x client generator and the generated request path for multipart/form-data; the issue does not name specific files, tests, or an OpenAPI declaration. Reproduce with a multipart operation and verify that a MultipartForm is generated and request.sendMultipartForm is called instead of request.sendForm.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.