title: Uploading multiple file with swagger api documentation and Spring Boot
body: <p>I want to upload a list of files using swagger api and I can not find a way in which I get the endpoint generated having a list of MultipartFile. Could you please help me? I also searched in the swagger documentation without any luck. For now I have the following swagger config:</p>
  <pre><code>    x-swagger-router-controller: attachments
      post:
        operationId: saveFiles
        summary: saves the uploaded files
        tags:
          - files
        consumes:
          - multipart/form-data
        produces:
          - application/json
        parameters:
          - name: files
            in: formData
            type: array
            items:
              type: file
            description: Files to be uploaded
            required: true
          - name: type
            type: array
            items:
              type: string
            description: File types
            in: path
            required: true
        responses:
          201:
            description: Saved files
            schema:
              $ref: '#/definitions/CreatedFilesResponse'
          415:
            description: Unsupported media type
            schema:
              $ref: '#/definitions/ErrorResponse'
          default:
            description: Error
            schema:
              $ref: '#/definitions/ErrorResponse'
  </code></pre>
  <p>this code generates the following spring endpoint</p>
  <pre><code>    public ResponseEntity&lt;CreatedAttachmentsResponse&gt; createFile(List&lt;File&gt; list, List&lt;String&gt; list1) {
          return null;
      }
  </code></pre>