mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 08:02:43 +00:00
[Java][Spring] Fix for #8659 - Different in-parameter types generated for api and delegate for files (#9331)
This commit is contained in:
committed by
GitHub
parent
812d563c78
commit
b9a1c8f016
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user