Skip to content

convert response body with content "multipart/form-data" and array schema to @RequestParam  #57

Closed
@hauner

Description

@hauner

Assuming the following open api snippet for a request body for uploading multiple files:

  requestBody:
    required: true
    content:
      multipart/form-data:
        schema:
          type: object
          properties:
            files:
              type: array
              items:
                type: string
                format: binary

the generatr should create an additional query parameter instead of a @RequestBody parameter, in this case as array

 @RequestParam(name = "files") MultipartFile[] files

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions