forked from loafle/openapi-generator-original
[Java/Spring] Revert to fully qualified import for org.springframework.core.io.Resource (#11461)
* Revert to fully qualified import for org.springframework.core.io.Resource * Generate Samples
This commit is contained in:
@@ -14,7 +14,6 @@ import java.util.Map;
|
||||
import org.openapitools.model.ModelApiResponse;
|
||||
import org.threeten.bp.OffsetDateTime;
|
||||
import org.openapitools.model.OuterComposite;
|
||||
import org.springframework.core.io.Resource;
|
||||
import org.openapitools.model.User;
|
||||
import org.openapitools.model.XmlItem;
|
||||
import io.swagger.annotations.*;
|
||||
|
||||
@@ -9,7 +9,6 @@ import java.util.Map;
|
||||
import org.openapitools.model.ModelApiResponse;
|
||||
import org.threeten.bp.OffsetDateTime;
|
||||
import org.openapitools.model.OuterComposite;
|
||||
import org.springframework.core.io.Resource;
|
||||
import org.openapitools.model.User;
|
||||
import org.openapitools.model.XmlItem;
|
||||
import org.springframework.http.HttpStatus;
|
||||
|
||||
@@ -7,7 +7,6 @@ package org.openapitools.api;
|
||||
|
||||
import org.openapitools.model.ModelApiResponse;
|
||||
import org.openapitools.model.Pet;
|
||||
import org.springframework.core.io.Resource;
|
||||
import java.util.Set;
|
||||
import io.swagger.annotations.*;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
|
||||
@@ -2,7 +2,6 @@ package org.openapitools.api;
|
||||
|
||||
import org.openapitools.model.ModelApiResponse;
|
||||
import org.openapitools.model.Pet;
|
||||
import org.springframework.core.io.Resource;
|
||||
import java.util.Set;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.MediaType;
|
||||
|
||||
@@ -9,7 +9,6 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Arrays;
|
||||
import java.util.UUID;
|
||||
import org.springframework.core.io.Resource;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.threeten.bp.LocalDate;
|
||||
import org.threeten.bp.OffsetDateTime;
|
||||
@@ -52,7 +51,7 @@ public class FormatTest {
|
||||
private byte[] _byte;
|
||||
|
||||
@JsonProperty("binary")
|
||||
private Resource binary;
|
||||
private org.springframework.core.io.Resource binary;
|
||||
|
||||
@JsonProperty("date")
|
||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
|
||||
@@ -233,7 +232,7 @@ public class FormatTest {
|
||||
this._byte = _byte;
|
||||
}
|
||||
|
||||
public FormatTest binary(Resource binary) {
|
||||
public FormatTest binary(org.springframework.core.io.Resource binary) {
|
||||
this.binary = binary;
|
||||
return this;
|
||||
}
|
||||
@@ -244,11 +243,11 @@ public class FormatTest {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public Resource getBinary() {
|
||||
public org.springframework.core.io.Resource getBinary() {
|
||||
return binary;
|
||||
}
|
||||
|
||||
public void setBinary(Resource binary) {
|
||||
public void setBinary(org.springframework.core.io.Resource binary) {
|
||||
this.binary = binary;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user