OpenAPITools / OpenAPITools/openapi-generator

[BUG] If it is a 'multipart/form-data' uploading. It will cause a build error.

Open
#4,538 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

https://github.com/OpenAPITools/openapi-generator/blob/8ca1788a75f1245a4532ad7e85792688c8e5ab9b/modules/openapi-generator/src/main/resources/dart2/api.mustache#L65

As title, The 'multipart/form-data' input param is a List. There is a setting field operation in this mustache. It will cause a build error.

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

Inspect modules/openapi-generator/src/main/resources/dart2/api.mustache at line 65, then reproduce generation for an OpenAPI operation using a multipart/form-data input parameter. Check the generated Dart code and confirm that the resulting project builds without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, java
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.