[Java][Spring] Fix for #8659 - Different in-parameter types generated for api and delegate for files (#9331)

This commit is contained in:
Mateusz Hubert Stefaniak
2021-04-26 03:49:21 +02:00
committed by GitHub
parent 812d563c78
commit b9a1c8f016
24 changed files with 85 additions and 85 deletions

View File

@@ -3,7 +3,7 @@ package org.openapitools.configuration;
import com.fasterxml.jackson.dataformat.yaml.YAMLMapper;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.core.io.Resource;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.stereotype.Controller;
import org.springframework.util.StreamUtils;
import org.springframework.web.bind.annotation.GetMapping;

View File

@@ -44,7 +44,7 @@ public class FormatTest {
private byte[] _byte;
@JsonProperty("binary")
private org.springframework.core.io.Resource binary;
private org.springframework.web.multipart.MultipartFile binary;
@JsonProperty("date")
@org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE)
@@ -236,7 +236,7 @@ public class FormatTest {
this._byte = _byte;
}
public FormatTest binary(org.springframework.core.io.Resource binary) {
public FormatTest binary(org.springframework.web.multipart.MultipartFile binary) {
this.binary = binary;
return this;
}
@@ -249,11 +249,11 @@ public class FormatTest {
@Valid
public org.springframework.core.io.Resource getBinary() {
public org.springframework.web.multipart.MultipartFile getBinary() {
return binary;
}
public void setBinary(org.springframework.core.io.Resource binary) {
public void setBinary(org.springframework.web.multipart.MultipartFile binary) {
this.binary = binary;
}