forked from loafle/openapi-generator-original
fix Parcelable option (#8513)
This commit is contained in:
parent
030b75b012
commit
0068932470
@ -855,35 +855,35 @@ public class JavaClientCodegen extends AbstractJavaCodegen
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// add implements for serializable/parcelable to all models
|
||||
for (Object _mo : models) {
|
||||
Map<String, Object> mo = (Map<String, Object>) _mo;
|
||||
CodegenModel cm = (CodegenModel) mo.get("model");
|
||||
// add implements for serializable/parcelable to all models
|
||||
for (Object _mo : models) {
|
||||
Map<String, Object> mo = (Map<String, Object>) _mo;
|
||||
CodegenModel cm = (CodegenModel) mo.get("model");
|
||||
|
||||
cm.getVendorExtensions().putIfAbsent("x-implements", new ArrayList<String>());
|
||||
if (JERSEY2.equals(getLibrary()) || NATIVE.equals(getLibrary())) {
|
||||
cm.getVendorExtensions().put("x-implements", new ArrayList<String>());
|
||||
cm.getVendorExtensions().putIfAbsent("x-implements", new ArrayList<String>());
|
||||
if (JERSEY2.equals(getLibrary()) || NATIVE.equals(getLibrary())) {
|
||||
cm.getVendorExtensions().put("x-implements", new ArrayList<String>());
|
||||
|
||||
if (cm.oneOf != null && !cm.oneOf.isEmpty() && cm.oneOf.contains("ModelNull")) {
|
||||
// if oneOf contains "null" type
|
||||
cm.isNullable = true;
|
||||
cm.oneOf.remove("ModelNull");
|
||||
}
|
||||
|
||||
if (cm.anyOf != null && !cm.anyOf.isEmpty() && cm.anyOf.contains("ModelNull")) {
|
||||
// if anyOf contains "null" type
|
||||
cm.isNullable = true;
|
||||
cm.anyOf.remove("ModelNull");
|
||||
}
|
||||
if (cm.oneOf != null && !cm.oneOf.isEmpty() && cm.oneOf.contains("ModelNull")) {
|
||||
// if oneOf contains "null" type
|
||||
cm.isNullable = true;
|
||||
cm.oneOf.remove("ModelNull");
|
||||
}
|
||||
if (this.parcelableModel) {
|
||||
((ArrayList<String>) cm.getVendorExtensions().get("x-implements")).add("Parcelable");
|
||||
}
|
||||
if (this.serializableModel) {
|
||||
((ArrayList<String>) cm.getVendorExtensions().get("x-implements")).add("Serializable");
|
||||
|
||||
if (cm.anyOf != null && !cm.anyOf.isEmpty() && cm.anyOf.contains("ModelNull")) {
|
||||
// if anyOf contains "null" type
|
||||
cm.isNullable = true;
|
||||
cm.anyOf.remove("ModelNull");
|
||||
}
|
||||
}
|
||||
if (this.parcelableModel) {
|
||||
((ArrayList<String>) cm.getVendorExtensions().get("x-implements")).add("Parcelable");
|
||||
}
|
||||
if (this.serializableModel) {
|
||||
((ArrayList<String>) cm.getVendorExtensions().get("x-implements")).add("Serializable");
|
||||
}
|
||||
}
|
||||
|
||||
return objs;
|
||||
|
@ -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** | | [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>>** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
@ -9,4 +9,8 @@ Name | Type | Description | Notes
|
||||
**arrayNumber** | **List<BigDecimal>** | | [optional]
|
||||
|
||||
|
||||
## Implemented Interfaces
|
||||
|
||||
* Parcelable
|
||||
|
||||
|
||||
|
@ -11,4 +11,8 @@ Name | Type | Description | Notes
|
||||
**arrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [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** | | [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** | | [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
|
||||
|
||||
|
||||
|
@ -32,7 +32,7 @@ import android.os.Parcel;
|
||||
* AdditionalPropertiesAnyType
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
||||
public class AdditionalPropertiesAnyType extends HashMap<String, Object> implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_NAME)
|
||||
private String name;
|
||||
|
@ -33,7 +33,7 @@ import android.os.Parcel;
|
||||
* AdditionalPropertiesArray
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class AdditionalPropertiesArray extends HashMap<String, List> {
|
||||
public class AdditionalPropertiesArray extends HashMap<String, List> implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_NAME)
|
||||
private String name;
|
||||
|
@ -32,7 +32,7 @@ import android.os.Parcel;
|
||||
* AdditionalPropertiesBoolean
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
||||
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_NAME)
|
||||
private String name;
|
||||
|
@ -34,7 +34,7 @@ import android.os.Parcel;
|
||||
* AdditionalPropertiesClass
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class AdditionalPropertiesClass {
|
||||
public class AdditionalPropertiesClass implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_MAP_STRING = "map_string";
|
||||
@SerializedName(SERIALIZED_NAME_MAP_STRING)
|
||||
private Map<String, String> mapString = null;
|
||||
|
@ -32,7 +32,7 @@ import android.os.Parcel;
|
||||
* AdditionalPropertiesInteger
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
||||
public class AdditionalPropertiesInteger extends HashMap<String, Integer> implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_NAME)
|
||||
private String name;
|
||||
|
@ -33,7 +33,7 @@ import android.os.Parcel;
|
||||
* AdditionalPropertiesNumber
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
||||
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_NAME)
|
||||
private String name;
|
||||
|
@ -32,7 +32,7 @@ import android.os.Parcel;
|
||||
* AdditionalPropertiesObject
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
||||
public class AdditionalPropertiesObject extends HashMap<String, Map> implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_NAME)
|
||||
private String name;
|
||||
|
@ -32,7 +32,7 @@ import android.os.Parcel;
|
||||
* AdditionalPropertiesString
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class AdditionalPropertiesString extends HashMap<String, String> {
|
||||
public class AdditionalPropertiesString extends HashMap<String, String> implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_NAME)
|
||||
private String name;
|
||||
|
@ -33,7 +33,7 @@ import android.os.Parcel;
|
||||
* Animal
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Animal {
|
||||
public class Animal implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_CLASS_NAME = "className";
|
||||
@SerializedName(SERIALIZED_NAME_CLASS_NAME)
|
||||
protected String className;
|
||||
|
@ -33,7 +33,7 @@ import android.os.Parcel;
|
||||
* ArrayOfArrayOfNumberOnly
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class ArrayOfArrayOfNumberOnly {
|
||||
public class ArrayOfArrayOfNumberOnly implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber";
|
||||
@SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER)
|
||||
private List<List<BigDecimal>> arrayArrayNumber = null;
|
||||
|
@ -33,7 +33,7 @@ import android.os.Parcel;
|
||||
* ArrayOfNumberOnly
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class ArrayOfNumberOnly {
|
||||
public class ArrayOfNumberOnly implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber";
|
||||
@SerializedName(SERIALIZED_NAME_ARRAY_NUMBER)
|
||||
private List<BigDecimal> arrayNumber = null;
|
||||
|
@ -33,7 +33,7 @@ import android.os.Parcel;
|
||||
* ArrayTest
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class ArrayTest {
|
||||
public class ArrayTest implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string";
|
||||
@SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING)
|
||||
private List<String> arrayOfString = null;
|
||||
|
@ -32,7 +32,7 @@ import android.os.Parcel;
|
||||
* BigCat
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class BigCat extends Cat {
|
||||
public class BigCat extends Cat implements Parcelable {
|
||||
/**
|
||||
* Gets or Sets kind
|
||||
*/
|
||||
|
@ -30,7 +30,7 @@ import android.os.Parcel;
|
||||
* BigCatAllOf
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class BigCatAllOf {
|
||||
public class BigCatAllOf implements Parcelable {
|
||||
/**
|
||||
* Gets or Sets kind
|
||||
*/
|
||||
|
@ -30,7 +30,7 @@ import android.os.Parcel;
|
||||
* Capitalization
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Capitalization {
|
||||
public class Capitalization implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel";
|
||||
@SerializedName(SERIALIZED_NAME_SMALL_CAMEL)
|
||||
private String smallCamel;
|
||||
|
@ -33,7 +33,7 @@ import android.os.Parcel;
|
||||
* Cat
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Cat extends Animal {
|
||||
public class Cat extends Animal implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_DECLAWED = "declawed";
|
||||
@SerializedName(SERIALIZED_NAME_DECLAWED)
|
||||
private Boolean declawed;
|
||||
|
@ -30,7 +30,7 @@ import android.os.Parcel;
|
||||
* CatAllOf
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class CatAllOf {
|
||||
public class CatAllOf implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_DECLAWED = "declawed";
|
||||
@SerializedName(SERIALIZED_NAME_DECLAWED)
|
||||
private Boolean declawed;
|
||||
|
@ -30,7 +30,7 @@ import android.os.Parcel;
|
||||
* Category
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Category {
|
||||
public class Category implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_ID)
|
||||
private Long id;
|
||||
|
@ -31,7 +31,7 @@ import android.os.Parcel;
|
||||
*/
|
||||
@ApiModel(description = "Model for testing model with \"_class\" property")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class ClassModel {
|
||||
public class ClassModel implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class";
|
||||
@SerializedName(SERIALIZED_NAME_PROPERTY_CLASS)
|
||||
private String propertyClass;
|
||||
|
@ -30,7 +30,7 @@ import android.os.Parcel;
|
||||
* Client
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Client {
|
||||
public class Client implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_CLIENT = "client";
|
||||
@SerializedName(SERIALIZED_NAME_CLIENT)
|
||||
private String client;
|
||||
|
@ -32,7 +32,7 @@ import android.os.Parcel;
|
||||
* Dog
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Dog extends Animal {
|
||||
public class Dog extends Animal implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_BREED = "breed";
|
||||
@SerializedName(SERIALIZED_NAME_BREED)
|
||||
private String breed;
|
||||
|
@ -30,7 +30,7 @@ import android.os.Parcel;
|
||||
* DogAllOf
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class DogAllOf {
|
||||
public class DogAllOf implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_BREED = "breed";
|
||||
@SerializedName(SERIALIZED_NAME_BREED)
|
||||
private String breed;
|
||||
|
@ -32,7 +32,7 @@ import android.os.Parcel;
|
||||
* EnumArrays
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class EnumArrays {
|
||||
public class EnumArrays implements Parcelable {
|
||||
/**
|
||||
* Gets or Sets justSymbol
|
||||
*/
|
||||
|
@ -31,7 +31,7 @@ import android.os.Parcel;
|
||||
* EnumTest
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class EnumTest {
|
||||
public class EnumTest implements Parcelable {
|
||||
/**
|
||||
* Gets or Sets enumString
|
||||
*/
|
||||
|
@ -32,7 +32,7 @@ import android.os.Parcel;
|
||||
* FileSchemaTestClass
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class FileSchemaTestClass {
|
||||
public class FileSchemaTestClass implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_FILE = "file";
|
||||
@SerializedName(SERIALIZED_NAME_FILE)
|
||||
private java.io.File file;
|
||||
|
@ -35,7 +35,7 @@ import android.os.Parcel;
|
||||
* FormatTest
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class FormatTest {
|
||||
public class FormatTest implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_INTEGER = "integer";
|
||||
@SerializedName(SERIALIZED_NAME_INTEGER)
|
||||
private Integer integer;
|
||||
|
@ -30,7 +30,7 @@ import android.os.Parcel;
|
||||
* HasOnlyReadOnly
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class HasOnlyReadOnly {
|
||||
public class HasOnlyReadOnly implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_BAR = "bar";
|
||||
@SerializedName(SERIALIZED_NAME_BAR)
|
||||
private String bar;
|
||||
|
@ -33,7 +33,7 @@ import android.os.Parcel;
|
||||
* MapTest
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class MapTest {
|
||||
public class MapTest implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string";
|
||||
@SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING)
|
||||
private Map<String, Map<String, String>> mapMapOfString = null;
|
||||
|
@ -36,7 +36,7 @@ import android.os.Parcel;
|
||||
* MixedPropertiesAndAdditionalPropertiesClass
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_UUID = "uuid";
|
||||
@SerializedName(SERIALIZED_NAME_UUID)
|
||||
private UUID uuid;
|
||||
|
@ -31,7 +31,7 @@ import android.os.Parcel;
|
||||
*/
|
||||
@ApiModel(description = "Model for testing model name starting with number")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Model200Response {
|
||||
public class Model200Response implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_NAME)
|
||||
private Integer name;
|
||||
|
@ -30,7 +30,7 @@ import android.os.Parcel;
|
||||
* ModelApiResponse
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class ModelApiResponse {
|
||||
public class ModelApiResponse implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_CODE = "code";
|
||||
@SerializedName(SERIALIZED_NAME_CODE)
|
||||
private Integer code;
|
||||
|
@ -31,7 +31,7 @@ import android.os.Parcel;
|
||||
*/
|
||||
@ApiModel(description = "Model for testing reserved words")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class ModelReturn {
|
||||
public class ModelReturn implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_RETURN = "return";
|
||||
@SerializedName(SERIALIZED_NAME_RETURN)
|
||||
private Integer _return;
|
||||
|
@ -31,7 +31,7 @@ import android.os.Parcel;
|
||||
*/
|
||||
@ApiModel(description = "Model for testing model name same as property name")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Name {
|
||||
public class Name implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_NAME)
|
||||
private Integer name;
|
||||
|
@ -31,7 +31,7 @@ import android.os.Parcel;
|
||||
* NumberOnly
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class NumberOnly {
|
||||
public class NumberOnly implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber";
|
||||
@SerializedName(SERIALIZED_NAME_JUST_NUMBER)
|
||||
private BigDecimal justNumber;
|
||||
|
@ -31,7 +31,7 @@ import android.os.Parcel;
|
||||
* Order
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Order {
|
||||
public class Order implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_ID)
|
||||
private Long id;
|
||||
|
@ -31,7 +31,7 @@ import android.os.Parcel;
|
||||
* OuterComposite
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class OuterComposite {
|
||||
public class OuterComposite implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_MY_NUMBER = "my_number";
|
||||
@SerializedName(SERIALIZED_NAME_MY_NUMBER)
|
||||
private BigDecimal myNumber;
|
||||
|
@ -36,7 +36,7 @@ import android.os.Parcel;
|
||||
* Pet
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Pet {
|
||||
public class Pet implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_ID)
|
||||
private Long id;
|
||||
|
@ -30,7 +30,7 @@ import android.os.Parcel;
|
||||
* ReadOnlyFirst
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class ReadOnlyFirst {
|
||||
public class ReadOnlyFirst implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_BAR = "bar";
|
||||
@SerializedName(SERIALIZED_NAME_BAR)
|
||||
private String bar;
|
||||
|
@ -30,7 +30,7 @@ import android.os.Parcel;
|
||||
* SpecialModelName
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class SpecialModelName {
|
||||
public class SpecialModelName implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
|
||||
@SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME)
|
||||
private Long $specialPropertyName;
|
||||
|
@ -30,7 +30,7 @@ import android.os.Parcel;
|
||||
* Tag
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Tag {
|
||||
public class Tag implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_ID)
|
||||
private Long id;
|
||||
|
@ -33,7 +33,7 @@ import android.os.Parcel;
|
||||
* TypeHolderDefault
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class TypeHolderDefault {
|
||||
public class TypeHolderDefault implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_STRING_ITEM = "string_item";
|
||||
@SerializedName(SERIALIZED_NAME_STRING_ITEM)
|
||||
private String stringItem = "what";
|
||||
|
@ -33,7 +33,7 @@ import android.os.Parcel;
|
||||
* TypeHolderExample
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class TypeHolderExample {
|
||||
public class TypeHolderExample implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_STRING_ITEM = "string_item";
|
||||
@SerializedName(SERIALIZED_NAME_STRING_ITEM)
|
||||
private String stringItem;
|
||||
|
@ -30,7 +30,7 @@ import android.os.Parcel;
|
||||
* User
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class User {
|
||||
public class User implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_ID)
|
||||
private Long id;
|
||||
|
@ -33,7 +33,7 @@ import android.os.Parcel;
|
||||
* XmlItem
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class XmlItem {
|
||||
public class XmlItem implements Parcelable {
|
||||
public static final String SERIALIZED_NAME_ATTRIBUTE_STRING = "attribute_string";
|
||||
@SerializedName(SERIALIZED_NAME_ATTRIBUTE_STRING)
|
||||
private String attributeString;
|
||||
|
Loading…
x
Reference in New Issue
Block a user