forked from loafle/openapi-generator-original
update java petstore with new uuid mapping
This commit is contained in:
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
|
||||
**binary** | **byte[]** | | [optional]
|
||||
**date** | [**LocalDate**](LocalDate.md) | |
|
||||
**dateTime** | [**DateTime**](DateTime.md) | | [optional]
|
||||
**uuid** | **String** | | [optional]
|
||||
**uuid** | [**UUID**](UUID.md) | | [optional]
|
||||
**password** | **String** | |
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**uuid** | **String** | | [optional]
|
||||
**uuid** | [**UUID**](UUID.md) | | [optional]
|
||||
**dateTime** | [**DateTime**](DateTime.md) | | [optional]
|
||||
**map** | [**Map<String, Animal>**](Animal.md) | | [optional]
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ import com.google.gson.annotations.SerializedName;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.UUID;
|
||||
import org.joda.time.DateTime;
|
||||
import org.joda.time.LocalDate;
|
||||
|
||||
@@ -60,7 +61,7 @@ public class FormatTest {
|
||||
private DateTime dateTime = null;
|
||||
|
||||
@SerializedName("uuid")
|
||||
private String uuid = null;
|
||||
private UUID uuid = null;
|
||||
|
||||
@SerializedName("password")
|
||||
private String password = null;
|
||||
@@ -273,7 +274,7 @@ public class FormatTest {
|
||||
this.dateTime = dateTime;
|
||||
}
|
||||
|
||||
public FormatTest uuid(String uuid) {
|
||||
public FormatTest uuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
return this;
|
||||
}
|
||||
@@ -283,11 +284,11 @@ public class FormatTest {
|
||||
* @return uuid
|
||||
**/
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
public String getUuid() {
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(String uuid) {
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ import io.swagger.client.model.Animal;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
/**
|
||||
@@ -29,7 +30,7 @@ import org.joda.time.DateTime;
|
||||
|
||||
public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
@SerializedName("uuid")
|
||||
private String uuid = null;
|
||||
private UUID uuid = null;
|
||||
|
||||
@SerializedName("dateTime")
|
||||
private DateTime dateTime = null;
|
||||
@@ -37,7 +38,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
@SerializedName("map")
|
||||
private Map<String, Animal> map = new HashMap<String, Animal>();
|
||||
|
||||
public MixedPropertiesAndAdditionalPropertiesClass uuid(String uuid) {
|
||||
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
return this;
|
||||
}
|
||||
@@ -47,11 +48,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
* @return uuid
|
||||
**/
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
public String getUuid() {
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public void setUuid(String uuid) {
|
||||
public void setUuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user