Skip to content

Commit

Permalink
update samples and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mosesonline committed Jun 22, 2024
1 parent e8c9139 commit 40f8dee
Show file tree
Hide file tree
Showing 100 changed files with 240 additions and 240 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Pet {

List<String> photoUrls = new ArrayList<>()

List<Tag> tags = new ArrayList<>()
List<Tag> tags

enum StatusEnum {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class Pet {
private List<String> photoUrls = new ArrayList<>();

@ApiModelProperty(value = "")
private List<Tag> tags = new ArrayList<>();
private List<Tag> tags;

public enum StatusEnum {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class Pet {
private List<String> photoUrls = new ArrayList<>();

@ApiModelProperty(value = "")
private List<Tag> tags = new ArrayList<>();
private List<Tag> tags;

public enum StatusEnum {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class Pet {

@ApiModelProperty(value = "")
@Valid
private List<@Valid Tag> tags = new ArrayList<>();
private List<@Valid Tag> tags;

public enum StatusEnum {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class Pet {

private List<String> photoUrls = new ArrayList<>();

private List<@Valid Tag> tags = new ArrayList<>();
private List<@Valid Tag> tags;


public enum StatusEnum {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class Pet {

@ApiModelProperty(value = "")
@Valid
private List<@Valid Tag> tags = new ArrayList<>();
private List<@Valid Tag> tags;

public enum StatusEnum {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class ArrayOfArrayOfNumberOnly {

@ApiModelProperty(value = "")
@Valid
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<>();
private List<List<BigDecimal>> arrayArrayNumber;
/**
* Get arrayArrayNumber
* @return arrayArrayNumber
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class ArrayOfNumberOnly {

@ApiModelProperty(value = "")
@Valid
private List<BigDecimal> arrayNumber = new ArrayList<>();
private List<BigDecimal> arrayNumber;
/**
* Get arrayNumber
* @return arrayNumber
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
public class ArrayTest {

@ApiModelProperty(value = "")
private List<String> arrayOfString = new ArrayList<>();
private List<String> arrayOfString;

@ApiModelProperty(value = "")
@Valid
private List<List<Long>> arrayArrayOfInteger = new ArrayList<>();
private List<List<Long>> arrayArrayOfInteger;

@ApiModelProperty(value = "")
@Valid
private List<List<@Valid ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<>();
private List<List<@Valid ReadOnlyFirst>> arrayArrayOfModel;
/**
* Get arrayOfString
* @return arrayOfString
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static ArrayEnumEnum fromValue(String value) {
}

@ApiModelProperty(value = "")
private List<ArrayEnumEnum> arrayEnum = new ArrayList<>();
private List<ArrayEnumEnum> arrayEnum;
/**
* Get justSymbol
* @return justSymbol
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class FileSchemaTestClass {

@ApiModelProperty(value = "")
@Valid
private List<@Valid ModelFile> files = new ArrayList<>();
private List<@Valid ModelFile> files;
/**
* Get _file
* @return _file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class Pet {

@ApiModelProperty(value = "")
@Valid
private List<@Valid Tag> tags = new ArrayList<>();
private List<@Valid Tag> tags;

public enum StatusEnum {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class XmlItem {
private Boolean attributeBoolean;

@ApiModelProperty(value = "")
private List<Integer> wrappedArray = new ArrayList<>();
private List<Integer> wrappedArray;

@ApiModelProperty(example = "string", value = "")
private String nameString;
Expand All @@ -44,10 +44,10 @@ public class XmlItem {
private Boolean nameBoolean;

@ApiModelProperty(value = "")
private List<Integer> nameArray = new ArrayList<>();
private List<Integer> nameArray;

@ApiModelProperty(value = "")
private List<Integer> nameWrappedArray = new ArrayList<>();
private List<Integer> nameWrappedArray;

@ApiModelProperty(example = "string", value = "")
private String prefixString;
Expand All @@ -63,10 +63,10 @@ public class XmlItem {
private Boolean prefixBoolean;

@ApiModelProperty(value = "")
private List<Integer> prefixArray = new ArrayList<>();
private List<Integer> prefixArray;

@ApiModelProperty(value = "")
private List<Integer> prefixWrappedArray = new ArrayList<>();
private List<Integer> prefixWrappedArray;

@ApiModelProperty(example = "string", value = "")
private String namespaceString;
Expand All @@ -82,10 +82,10 @@ public class XmlItem {
private Boolean namespaceBoolean;

@ApiModelProperty(value = "")
private List<Integer> namespaceArray = new ArrayList<>();
private List<Integer> namespaceArray;

@ApiModelProperty(value = "")
private List<Integer> namespaceWrappedArray = new ArrayList<>();
private List<Integer> namespaceWrappedArray;

@ApiModelProperty(example = "string", value = "")
private String prefixNsString;
Expand All @@ -101,10 +101,10 @@ public class XmlItem {
private Boolean prefixNsBoolean;

@ApiModelProperty(value = "")
private List<Integer> prefixNsArray = new ArrayList<>();
private List<Integer> prefixNsArray;

@ApiModelProperty(value = "")
private List<Integer> prefixNsWrappedArray = new ArrayList<>();
private List<Integer> prefixNsWrappedArray;
/**
* Get attributeString
* @return attributeString
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
public class ArrayOfArrayOfNumberOnly implements Serializable {
public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber";
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<>();
private List<List<BigDecimal>> arrayArrayNumber;

public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
this.arrayArrayNumber = arrayArrayNumber;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
public class ArrayOfNumberOnly implements Serializable {
public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber";
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
private List<BigDecimal> arrayNumber = new ArrayList<>();
private List<BigDecimal> arrayNumber;

public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
this.arrayNumber = arrayNumber;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@
public class ArrayTest implements Serializable {
public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string";
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
private List<String> arrayOfString = new ArrayList<>();
private List<String> arrayOfString;

public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer";
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
private List<List<Long>> arrayArrayOfInteger = new ArrayList<>();
private List<List<Long>> arrayArrayOfInteger;

public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model";
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
private List<List<@Valid ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<>();
private List<List<@Valid ReadOnlyFirst>> arrayArrayOfModel;

public ArrayTest arrayOfString(List<String> arrayOfString) {
this.arrayOfString = arrayOfString;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public static ArrayEnumEnum fromValue(String value) {

public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum";
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
private List<ArrayEnumEnum> arrayEnum = new ArrayList<>();
private List<ArrayEnumEnum> arrayEnum;

public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
this.justSymbol = justSymbol;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class FileSchemaTestClass implements Serializable {

public static final String JSON_PROPERTY_FILES = "files";
@JsonProperty(JSON_PROPERTY_FILES)
private List<@Valid ModelFile> files = new ArrayList<>();
private List<@Valid ModelFile> files;

public FileSchemaTestClass _file(ModelFile _file) {
this._file = _file;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class Pet implements Serializable {

public static final String JSON_PROPERTY_TAGS = "tags";
@JsonProperty(JSON_PROPERTY_TAGS)
private List<@Valid Tag> tags = new ArrayList<>();
private List<@Valid Tag> tags;

/**
* pet status in the store
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public class XmlItem implements Serializable {

public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array";
@JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY)
private List<Integer> wrappedArray = new ArrayList<>();
private List<Integer> wrappedArray;

public static final String JSON_PROPERTY_NAME_STRING = "name_string";
@JsonProperty(JSON_PROPERTY_NAME_STRING)
Expand All @@ -101,11 +101,11 @@ public class XmlItem implements Serializable {

public static final String JSON_PROPERTY_NAME_ARRAY = "name_array";
@JsonProperty(JSON_PROPERTY_NAME_ARRAY)
private List<Integer> nameArray = new ArrayList<>();
private List<Integer> nameArray;

public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array";
@JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY)
private List<Integer> nameWrappedArray = new ArrayList<>();
private List<Integer> nameWrappedArray;

public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string";
@JsonProperty(JSON_PROPERTY_PREFIX_STRING)
Expand All @@ -125,11 +125,11 @@ public class XmlItem implements Serializable {

public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array";
@JsonProperty(JSON_PROPERTY_PREFIX_ARRAY)
private List<Integer> prefixArray = new ArrayList<>();
private List<Integer> prefixArray;

public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array";
@JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY)
private List<Integer> prefixWrappedArray = new ArrayList<>();
private List<Integer> prefixWrappedArray;

public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string";
@JsonProperty(JSON_PROPERTY_NAMESPACE_STRING)
Expand All @@ -149,11 +149,11 @@ public class XmlItem implements Serializable {

public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array";
@JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY)
private List<Integer> namespaceArray = new ArrayList<>();
private List<Integer> namespaceArray;

public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array";
@JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY)
private List<Integer> namespaceWrappedArray = new ArrayList<>();
private List<Integer> namespaceWrappedArray;

public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string";
@JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING)
Expand All @@ -173,11 +173,11 @@ public class XmlItem implements Serializable {

public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array";
@JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY)
private List<Integer> prefixNsArray = new ArrayList<>();
private List<Integer> prefixNsArray;

public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array";
@JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY)
private List<Integer> prefixNsWrappedArray = new ArrayList<>();
private List<Integer> prefixNsWrappedArray;

public XmlItem attributeString(String attributeString) {
this.attributeString = attributeString;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
public class ArrayOfArrayOfNumberOnly {
public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber";
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<>();
private List<List<BigDecimal>> arrayArrayNumber;

public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
this.arrayArrayNumber = arrayArrayNumber;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
public class ArrayOfNumberOnly {
public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber";
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
private List<BigDecimal> arrayNumber = new ArrayList<>();
private List<BigDecimal> arrayNumber;

public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
this.arrayNumber = arrayNumber;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@
public class ArrayTest {
public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string";
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
private List<String> arrayOfString = new ArrayList<>();
private List<String> arrayOfString;

public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer";
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
private List<List<Long>> arrayArrayOfInteger = new ArrayList<>();
private List<List<Long>> arrayArrayOfInteger;

public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model";
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
private List<List<@Valid ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<>();
private List<List<@Valid ReadOnlyFirst>> arrayArrayOfModel;

public ArrayTest arrayOfString(List<String> arrayOfString) {
this.arrayOfString = arrayOfString;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public static ArrayEnumEnum fromValue(String value) {

public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum";
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
private List<ArrayEnumEnum> arrayEnum = new ArrayList<>();
private List<ArrayEnumEnum> arrayEnum;

public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
this.justSymbol = justSymbol;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class FileSchemaTestClass {

public static final String JSON_PROPERTY_FILES = "files";
@JsonProperty(JSON_PROPERTY_FILES)
private List<@Valid ModelFile> files = new ArrayList<>();
private List<@Valid ModelFile> files;

public FileSchemaTestClass _file(ModelFile _file) {
this._file = _file;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public class NullableClass extends HashMap<String, Object> {

public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable";
@JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE)
private List<Object> arrayItemsNullable = new ArrayList<>();
private List<Object> arrayItemsNullable;

public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop";
@JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class ObjectWithDeprecatedFields {

public static final String JSON_PROPERTY_BARS = "bars";
@JsonProperty(JSON_PROPERTY_BARS)
private List<String> bars = new ArrayList<>();
private List<String> bars;

public ObjectWithDeprecatedFields uuid(String uuid) {
this.uuid = uuid;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class Pet {

public static final String JSON_PROPERTY_TAGS = "tags";
@JsonProperty(JSON_PROPERTY_TAGS)
private List<@Valid Tag> tags = new ArrayList<>();
private List<@Valid Tag> tags;

/**
* pet status in the store
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class Pet {
private Category category;
private String name;
private List<String> photoUrls = new ArrayList<>();
private List<@Valid Tag> tags = new ArrayList<>();
private List<@Valid Tag> tags;

/**
* pet status in the store
Expand Down
Loading

0 comments on commit 40f8dee

Please sign in to comment.