forked from loafle/openapi-generator-original
fix java instantiated lists (#1683)
This commit is contained in:
@@ -34,11 +34,11 @@ import java.util.Map;
|
||||
public class AdditionalPropertiesClass {
|
||||
public static final String SERIALIZED_NAME_MAP_PROPERTY = "map_property";
|
||||
@SerializedName(SERIALIZED_NAME_MAP_PROPERTY)
|
||||
private Map<String, String> mapProperty = null;
|
||||
private Map<String, String> mapProperty = new HashMap<String, String>();
|
||||
|
||||
public static final String SERIALIZED_NAME_MAP_OF_MAP_PROPERTY = "map_of_map_property";
|
||||
@SerializedName(SERIALIZED_NAME_MAP_OF_MAP_PROPERTY)
|
||||
private Map<String, Map<String, String>> mapOfMapProperty = null;
|
||||
private Map<String, Map<String, String>> mapOfMapProperty = new HashMap<String, Map<String, String>>();
|
||||
|
||||
public AdditionalPropertiesClass mapProperty(Map<String, String> mapProperty) {
|
||||
this.mapProperty = mapProperty;
|
||||
|
||||
@@ -34,7 +34,7 @@ import java.util.List;
|
||||
public class ArrayOfArrayOfNumberOnly {
|
||||
public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber";
|
||||
@SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER)
|
||||
private List<List<BigDecimal>> arrayArrayNumber = null;
|
||||
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
||||
|
||||
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
||||
this.arrayArrayNumber = arrayArrayNumber;
|
||||
|
||||
@@ -34,7 +34,7 @@ import java.util.List;
|
||||
public class ArrayOfNumberOnly {
|
||||
public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber";
|
||||
@SerializedName(SERIALIZED_NAME_ARRAY_NUMBER)
|
||||
private List<BigDecimal> arrayNumber = null;
|
||||
private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>();
|
||||
|
||||
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
|
||||
this.arrayNumber = arrayNumber;
|
||||
|
||||
@@ -34,15 +34,15 @@ import org.openapitools.client.model.ReadOnlyFirst;
|
||||
public class ArrayTest {
|
||||
public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string";
|
||||
@SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING)
|
||||
private List<String> arrayOfString = null;
|
||||
private List<String> arrayOfString = new ArrayList<String>();
|
||||
|
||||
public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer";
|
||||
@SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER)
|
||||
private List<List<Long>> arrayArrayOfInteger = null;
|
||||
private List<List<Long>> arrayArrayOfInteger = new ArrayList<List<Long>>();
|
||||
|
||||
public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model";
|
||||
@SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL)
|
||||
private List<List<ReadOnlyFirst>> arrayArrayOfModel = null;
|
||||
private List<List<ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
||||
|
||||
public ArrayTest arrayOfString(List<String> arrayOfString) {
|
||||
this.arrayOfString = arrayOfString;
|
||||
|
||||
@@ -131,7 +131,7 @@ public class EnumArrays {
|
||||
|
||||
public static final String SERIALIZED_NAME_ARRAY_ENUM = "array_enum";
|
||||
@SerializedName(SERIALIZED_NAME_ARRAY_ENUM)
|
||||
private List<ArrayEnumEnum> arrayEnum = null;
|
||||
private List<ArrayEnumEnum> arrayEnum = new ArrayList<ArrayEnumEnum>();
|
||||
|
||||
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
|
||||
this.justSymbol = justSymbol;
|
||||
|
||||
@@ -37,7 +37,7 @@ public class FileSchemaTestClass {
|
||||
|
||||
public static final String SERIALIZED_NAME_FILES = "files";
|
||||
@SerializedName(SERIALIZED_NAME_FILES)
|
||||
private List<java.io.File> files = null;
|
||||
private List<java.io.File> files = new ArrayList<java.io.File>();
|
||||
|
||||
public FileSchemaTestClass file(java.io.File file) {
|
||||
this.file = file;
|
||||
|
||||
@@ -34,7 +34,7 @@ import java.util.Map;
|
||||
public class MapTest {
|
||||
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;
|
||||
private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>();
|
||||
|
||||
/**
|
||||
* Gets or Sets inner
|
||||
@@ -85,15 +85,15 @@ public class MapTest {
|
||||
|
||||
public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string";
|
||||
@SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING)
|
||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||
private Map<String, InnerEnum> mapOfEnumString = new HashMap<String, InnerEnum>();
|
||||
|
||||
public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map";
|
||||
@SerializedName(SERIALIZED_NAME_DIRECT_MAP)
|
||||
private Map<String, Boolean> directMap = null;
|
||||
private Map<String, Boolean> directMap = new HashMap<String, Boolean>();
|
||||
|
||||
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
||||
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
||||
private Map<String, Boolean> indirectMap = null;
|
||||
private Map<String, Boolean> indirectMap = new HashMap<String, Boolean>();
|
||||
|
||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||
this.mapMapOfString = mapMapOfString;
|
||||
|
||||
@@ -45,7 +45,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
|
||||
public static final String SERIALIZED_NAME_MAP = "map";
|
||||
@SerializedName(SERIALIZED_NAME_MAP)
|
||||
private Map<String, Animal> map = null;
|
||||
private Map<String, Animal> map = new HashMap<String, Animal>();
|
||||
|
||||
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
|
||||
@@ -51,7 +51,7 @@ public class Pet {
|
||||
|
||||
public static final String SERIALIZED_NAME_TAGS = "tags";
|
||||
@SerializedName(SERIALIZED_NAME_TAGS)
|
||||
private List<Tag> tags = null;
|
||||
private List<Tag> tags = new ArrayList<Tag>();
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
|
||||
Reference in New Issue
Block a user