mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-03 00:43:46 +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
@@ -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