Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dart][dart-dio-next] File arrays in Form parameter are generated as a single file in the api #10032

Closed
ahmednfwela opened this issue Jul 25, 2021 · 1 comment · Fixed by #10061

Comments

@ahmednfwela
Copy link
Contributor

Description

form parameters with file arrays generated according to OAS3
are generated as a single MultipartFile instead of List<MultipartFile> (using BuiltList<MultipartFile> here is useless, since it doesn't get serialized)

openapi-generator version

5.2.0

OpenAPI declaration

      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                files:
                  type: array
                  items:
                    type: string
                    format: binary
@itsAmitGoyani
Copy link

This bug is not only in dart-dio-next, but also in dart-dio. Need to fix in dart-dio as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants