forked from loafle/openapi-generator-original
Merge remote-tracking branch 'origin/master' into 5.0.x
This commit is contained in:
@@ -34,7 +34,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
})
|
||||
@javax.annotation.concurrent.Immutable
|
||||
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||
|
||||
@@ -33,7 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
Animal.JSON_PROPERTY_COLOR
|
||||
})
|
||||
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||
|
||||
@@ -33,7 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
Animal.JSON_PROPERTY_COLOR
|
||||
})
|
||||
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||
|
||||
@@ -33,7 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
Animal.JSON_PROPERTY_COLOR
|
||||
})
|
||||
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||
|
||||
@@ -562,7 +562,7 @@ public class ApiClient {
|
||||
entity = Entity.entity(form, MediaType.APPLICATION_FORM_URLENCODED_TYPE);
|
||||
} else {
|
||||
// We let jersey handle the serialization
|
||||
entity = Entity.entity(obj, contentType);
|
||||
entity = Entity.entity(obj == null ? Entity.text("") : obj, contentType);
|
||||
}
|
||||
return entity;
|
||||
}
|
||||
@@ -716,7 +716,7 @@ public class ApiClient {
|
||||
}
|
||||
}
|
||||
|
||||
Entity<?> entity = (body == null) ? Entity.json("") : serialize(body, formParams, contentType);
|
||||
Entity<?> entity = serialize(body, formParams, contentType);
|
||||
|
||||
Response response = null;
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
Animal.JSON_PROPERTY_COLOR
|
||||
})
|
||||
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||
|
||||
@@ -563,7 +563,7 @@ public class ApiClient {
|
||||
entity = Entity.entity(form, MediaType.APPLICATION_FORM_URLENCODED_TYPE);
|
||||
} else {
|
||||
// We let jersey handle the serialization
|
||||
entity = Entity.entity(obj, contentType);
|
||||
entity = Entity.entity(obj == null ? Entity.text("") : obj, contentType);
|
||||
}
|
||||
return entity;
|
||||
}
|
||||
@@ -716,7 +716,7 @@ public class ApiClient {
|
||||
}
|
||||
}
|
||||
|
||||
Entity<?> entity = (body == null) ? Entity.json("") : serialize(body, formParams, contentType);
|
||||
Entity<?> entity = serialize(body, formParams, contentType);
|
||||
|
||||
Response response = null;
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
Animal.JSON_PROPERTY_COLOR
|
||||
})
|
||||
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||
|
||||
@@ -563,7 +563,7 @@ public class ApiClient {
|
||||
entity = Entity.entity(form, MediaType.APPLICATION_FORM_URLENCODED_TYPE);
|
||||
} else {
|
||||
// We let jersey handle the serialization
|
||||
entity = Entity.entity(obj, contentType);
|
||||
entity = Entity.entity(obj == null ? Entity.text("") : obj, contentType);
|
||||
}
|
||||
return entity;
|
||||
}
|
||||
@@ -716,7 +716,7 @@ public class ApiClient {
|
||||
}
|
||||
}
|
||||
|
||||
Entity<?> entity = (body == null) ? Entity.json("") : serialize(body, formParams, contentType);
|
||||
Entity<?> entity = serialize(body, formParams, contentType);
|
||||
|
||||
Response response = null;
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
Animal.JSON_PROPERTY_COLOR
|
||||
})
|
||||
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||
|
||||
@@ -33,7 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
Animal.JSON_PROPERTY_COLOR
|
||||
})
|
||||
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||
|
||||
@@ -9,4 +9,8 @@ Name | Type | Description | Notes
|
||||
**name** | **String** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -9,4 +9,8 @@ Name | Type | Description | Notes
|
||||
**name** | **String** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -9,4 +9,8 @@ Name | Type | Description | Notes
|
||||
**name** | **String** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -19,4 +19,8 @@ Name | Type | Description | Notes
|
||||
**anytype3** | [**Object**](.md) | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -9,4 +9,8 @@ Name | Type | Description | Notes
|
||||
**name** | **String** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -9,4 +9,8 @@ Name | Type | Description | Notes
|
||||
**name** | **String** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -9,4 +9,8 @@ Name | Type | Description | Notes
|
||||
**name** | **String** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -9,4 +9,8 @@ Name | Type | Description | Notes
|
||||
**name** | **String** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -10,4 +10,8 @@ Name | Type | Description | Notes
|
||||
**color** | **String** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -9,4 +9,8 @@ Name | Type | Description | Notes
|
||||
**arrayArrayNumber** | [**List<List<BigDecimal>>**](List.md) | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -9,4 +9,8 @@ Name | Type | Description | Notes
|
||||
**arrayNumber** | [**List<BigDecimal>**](BigDecimal.md) | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -11,4 +11,8 @@ Name | Type | Description | Notes
|
||||
**arrayArrayOfModel** | [**List<List<ReadOnlyFirst>>**](List.md) | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -20,4 +20,8 @@ LEOPARDS | "leopards"
|
||||
JAGUARS | "jaguars"
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -20,4 +20,8 @@ LEOPARDS | "leopards"
|
||||
JAGUARS | "jaguars"
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -14,4 +14,8 @@ Name | Type | Description | Notes
|
||||
**ATT_NAME** | **String** | Name of the pet | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -9,4 +9,8 @@ Name | Type | Description | Notes
|
||||
**declawed** | **Boolean** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -9,4 +9,8 @@ Name | Type | Description | Notes
|
||||
**declawed** | **Boolean** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -10,4 +10,8 @@ Name | Type | Description | Notes
|
||||
**name** | **String** | |
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -10,4 +10,8 @@ Name | Type | Description | Notes
|
||||
**propertyClass** | **String** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -9,4 +9,8 @@ Name | Type | Description | Notes
|
||||
**client** | **String** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -9,4 +9,8 @@ Name | Type | Description | Notes
|
||||
**breed** | **String** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -9,4 +9,8 @@ Name | Type | Description | Notes
|
||||
**breed** | **String** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -28,4 +28,8 @@ FISH | "fish"
|
||||
CRAB | "crab"
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -51,4 +51,8 @@ NUMBER_1_DOT_1 | 1.1
|
||||
NUMBER_MINUS_1_DOT_2 | -1.2
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -10,4 +10,8 @@ Name | Type | Description | Notes
|
||||
**files** | [**List<java.io.File>**](java.io.File.md) | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -22,4 +22,8 @@ Name | Type | Description | Notes
|
||||
**bigDecimal** | [**BigDecimal**](BigDecimal.md) | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -10,4 +10,8 @@ Name | Type | Description | Notes
|
||||
**foo** | **String** | | [optional] [readonly]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -21,4 +21,8 @@ UPPER | "UPPER"
|
||||
LOWER | "lower"
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -11,4 +11,8 @@ Name | Type | Description | Notes
|
||||
**map** | [**Map<String, Animal>**](Animal.md) | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -11,4 +11,8 @@ Name | Type | Description | Notes
|
||||
**propertyClass** | **String** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -11,4 +11,8 @@ Name | Type | Description | Notes
|
||||
**message** | **String** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -10,4 +10,8 @@ Name | Type | Description | Notes
|
||||
**_return** | **Integer** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -13,4 +13,8 @@ Name | Type | Description | Notes
|
||||
**_123number** | **Integer** | | [optional] [readonly]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -9,4 +9,8 @@ Name | Type | Description | Notes
|
||||
**justNumber** | [**BigDecimal**](BigDecimal.md) | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -24,4 +24,8 @@ APPROVED | "approved"
|
||||
DELIVERED | "delivered"
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -11,4 +11,8 @@ Name | Type | Description | Notes
|
||||
**myBoolean** | **Boolean** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -24,4 +24,8 @@ PENDING | "pending"
|
||||
SOLD | "sold"
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -10,4 +10,8 @@ Name | Type | Description | Notes
|
||||
**baz** | **String** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -9,4 +9,8 @@ Name | Type | Description | Notes
|
||||
**$specialPropertyName** | **Long** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -10,4 +10,8 @@ Name | Type | Description | Notes
|
||||
**name** | **String** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -13,4 +13,8 @@ Name | Type | Description | Notes
|
||||
**arrayItem** | **List<Integer>** | |
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -14,4 +14,8 @@ Name | Type | Description | Notes
|
||||
**arrayItem** | **List<Integer>** | |
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -16,4 +16,8 @@ Name | Type | Description | Notes
|
||||
**userStatus** | **Integer** | User Status | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -37,4 +37,8 @@ Name | Type | Description | Notes
|
||||
**prefixNsWrappedArray** | **List<Integer>** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
Animal.JSON_PROPERTY_COLOR
|
||||
})
|
||||
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||
|
||||
@@ -35,7 +35,7 @@ import javax.xml.bind.annotation.*;
|
||||
Animal.JSON_PROPERTY_COLOR
|
||||
})
|
||||
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||
|
||||
@@ -33,7 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
Animal.JSON_PROPERTY_COLOR
|
||||
})
|
||||
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||
|
||||
@@ -35,7 +35,7 @@ import javax.validation.Valid;
|
||||
Animal.JSON_PROPERTY_COLOR
|
||||
})
|
||||
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||
|
||||
@@ -35,7 +35,7 @@ import javax.validation.Valid;
|
||||
Animal.JSON_PROPERTY_COLOR
|
||||
})
|
||||
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||
|
||||
@@ -35,7 +35,7 @@ import javax.validation.Valid;
|
||||
Animal.JSON_PROPERTY_COLOR
|
||||
})
|
||||
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||
|
||||
@@ -33,7 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
Animal.JSON_PROPERTY_COLOR
|
||||
})
|
||||
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<swagger-annotations-version>1.5.22</swagger-annotations-version>
|
||||
<spring-web-version>5.0.8.RELEASE</spring-web-version>
|
||||
<spring-web-version>5.0.16.RELEASE</spring-web-version>
|
||||
<jackson-version>2.10.1</jackson-version>
|
||||
<jackson-databind-version>2.10.1</jackson-databind-version>
|
||||
<jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version>
|
||||
|
||||
@@ -33,7 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
Animal.JSON_PROPERTY_COLOR
|
||||
})
|
||||
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||
|
||||
Reference in New Issue
Block a user