Description
Hi,
here my mapping.yaml and opanapi.yaml
openapi-processor-mapping: v2
options:
package-name: de.vwn.inbound.smartdcm.api.generated
map:
types:
- type: array => java.util.List
- type: string:binary => org.springframework.web.multipart.MultipartFile
openapi: 3.0.2
info:
title: Service
description: API
version: 1.0.0
paths:
/download:
get:
summary: download an avatar
operationId: get_avatar
tags:
- user
parameters:
- in: query
name: test
schema:
type: array
items:
type: string
responses:
200:
description: user avatar
content:
application/*:
schema:
type: string
format: binary
The result is the following Interface:
public interface UserApi {
@GetMapping(path = "/upload", produces = {"application/*"})
MultipartFile getAvatar(@RequestParam(name = "test", required = false) List<MultipartFile> test);
}
spring processor version: 1.0.0.M19
gradle plugin version: 1.0.0.M8
The mapping of the return type is correct, but the mapping of the parameter is wrong. List was expected by me.