forked from loafle/openapi-generator-original
fix incorrect method name (#14720)
This commit is contained in:
parent
6095d2df75
commit
9be92fabd1
@ -80,7 +80,7 @@ class {{classname}} {{#parent}}{{^parentModel}}{{#vendorExtensions.x-is-array}}e
|
|||||||
}
|
}
|
||||||
// validate the required field `{{{baseName}}}` (array)
|
// validate the required field `{{{baseName}}}` (array)
|
||||||
for (const item of data['{{{baseName}}}']) {
|
for (const item of data['{{{baseName}}}']) {
|
||||||
{{{items.dataType}}}.validateJsonObject(item);
|
{{{items.dataType}}}.validateJSON(item);
|
||||||
};
|
};
|
||||||
{{/isRequired}}
|
{{/isRequired}}
|
||||||
{{^isRequired}}
|
{{^isRequired}}
|
||||||
@ -91,7 +91,7 @@ class {{classname}} {{#parent}}{{^parentModel}}{{#vendorExtensions.x-is-array}}e
|
|||||||
}
|
}
|
||||||
// validate the optional field `{{{baseName}}}` (array)
|
// validate the optional field `{{{baseName}}}` (array)
|
||||||
for (const item of data['{{{baseName}}}']) {
|
for (const item of data['{{{baseName}}}']) {
|
||||||
{{{items.dataType}}}.validateJsonObject(item);
|
{{{items.dataType}}}.validateJSON(item);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{{/isRequired}}
|
{{/isRequired}}
|
||||||
|
@ -74,7 +74,7 @@ class FileSchemaTestClass {
|
|||||||
}
|
}
|
||||||
// validate the optional field `files` (array)
|
// validate the optional field `files` (array)
|
||||||
for (const item of data['files']) {
|
for (const item of data['files']) {
|
||||||
File.validateJsonObject(item);
|
File.validateJSON(item);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ class Pet {
|
|||||||
}
|
}
|
||||||
// validate the optional field `tags` (array)
|
// validate the optional field `tags` (array)
|
||||||
for (const item of data['tags']) {
|
for (const item of data['tags']) {
|
||||||
Tag.validateJsonObject(item);
|
Tag.validateJSON(item);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// ensure the json data is a string
|
// ensure the json data is a string
|
||||||
|
@ -74,7 +74,7 @@ class FileSchemaTestClass {
|
|||||||
}
|
}
|
||||||
// validate the optional field `files` (array)
|
// validate the optional field `files` (array)
|
||||||
for (const item of data['files']) {
|
for (const item of data['files']) {
|
||||||
File.validateJsonObject(item);
|
File.validateJSON(item);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ class Pet {
|
|||||||
}
|
}
|
||||||
// validate the optional field `tags` (array)
|
// validate the optional field `tags` (array)
|
||||||
for (const item of data['tags']) {
|
for (const item of data['tags']) {
|
||||||
Tag.validateJsonObject(item);
|
Tag.validateJSON(item);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// ensure the json data is a string
|
// ensure the json data is a string
|
||||||
|
@ -74,7 +74,7 @@ class FileSchemaTestClass {
|
|||||||
}
|
}
|
||||||
// validate the optional field `files` (array)
|
// validate the optional field `files` (array)
|
||||||
for (const item of data['files']) {
|
for (const item of data['files']) {
|
||||||
File.validateJsonObject(item);
|
File.validateJSON(item);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ class Pet {
|
|||||||
}
|
}
|
||||||
// validate the optional field `tags` (array)
|
// validate the optional field `tags` (array)
|
||||||
for (const item of data['tags']) {
|
for (const item of data['tags']) {
|
||||||
Tag.validateJsonObject(item);
|
Tag.validateJSON(item);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// ensure the json data is a string
|
// ensure the json data is a string
|
||||||
|
@ -22,14 +22,14 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
@JsonTypeName("AdditionalPropertiesClass")
|
@JsonTypeName("AdditionalPropertiesClass")
|
||||||
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
||||||
public class AdditionalPropertiesClass implements Serializable {
|
public class AdditionalPropertiesClass implements Serializable {
|
||||||
private @Valid Map<String, String> mapString = null;
|
private @Valid Map<String, String> mapString = new HashMap<>();
|
||||||
private @Valid Map<String, BigDecimal> mapNumber = null;
|
private @Valid Map<String, BigDecimal> mapNumber = new HashMap<>();
|
||||||
private @Valid Map<String, Integer> mapInteger = null;
|
private @Valid Map<String, Integer> mapInteger = new HashMap<>();
|
||||||
private @Valid Map<String, Boolean> mapBoolean = null;
|
private @Valid Map<String, Boolean> mapBoolean = new HashMap<>();
|
||||||
private @Valid Map<String, List<Integer>> mapArrayInteger = null;
|
private @Valid Map<String, List<Integer>> mapArrayInteger = new HashMap<>();
|
||||||
private @Valid Map<String, List<Object>> mapArrayAnytype = null;
|
private @Valid Map<String, List<Object>> mapArrayAnytype = new HashMap<>();
|
||||||
private @Valid Map<String, Map<String, String>> mapMapString = null;
|
private @Valid Map<String, Map<String, String>> mapMapString = new HashMap<>();
|
||||||
private @Valid Map<String, Map<String, Object>> mapMapAnytype = null;
|
private @Valid Map<String, Map<String, Object>> mapMapAnytype = new HashMap<>();
|
||||||
private @Valid Object anytype1;
|
private @Valid Object anytype1;
|
||||||
private @Valid Object anytype2;
|
private @Valid Object anytype2;
|
||||||
private @Valid Object anytype3;
|
private @Valid Object anytype3;
|
||||||
|
@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
@JsonTypeName("ArrayOfArrayOfNumberOnly")
|
@JsonTypeName("ArrayOfArrayOfNumberOnly")
|
||||||
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
||||||
public class ArrayOfArrayOfNumberOnly implements Serializable {
|
public class ArrayOfArrayOfNumberOnly implements Serializable {
|
||||||
private @Valid List<List<BigDecimal>> arrayArrayNumber = null;
|
private @Valid List<List<BigDecimal>> arrayArrayNumber = new ArrayList<>();
|
||||||
|
|
||||||
protected ArrayOfArrayOfNumberOnly(ArrayOfArrayOfNumberOnlyBuilder<?, ?> b) {
|
protected ArrayOfArrayOfNumberOnly(ArrayOfArrayOfNumberOnlyBuilder<?, ?> b) {
|
||||||
this.arrayArrayNumber = b.arrayArrayNumber;
|
this.arrayArrayNumber = b.arrayArrayNumber;
|
||||||
|
@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
@JsonTypeName("ArrayOfNumberOnly")
|
@JsonTypeName("ArrayOfNumberOnly")
|
||||||
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
||||||
public class ArrayOfNumberOnly implements Serializable {
|
public class ArrayOfNumberOnly implements Serializable {
|
||||||
private @Valid List<BigDecimal> arrayNumber = null;
|
private @Valid List<BigDecimal> arrayNumber = new ArrayList<>();
|
||||||
|
|
||||||
protected ArrayOfNumberOnly(ArrayOfNumberOnlyBuilder<?, ?> b) {
|
protected ArrayOfNumberOnly(ArrayOfNumberOnlyBuilder<?, ?> b) {
|
||||||
this.arrayNumber = b.arrayNumber;
|
this.arrayNumber = b.arrayNumber;
|
||||||
|
@ -21,9 +21,9 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
@JsonTypeName("ArrayTest")
|
@JsonTypeName("ArrayTest")
|
||||||
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
||||||
public class ArrayTest implements Serializable {
|
public class ArrayTest implements Serializable {
|
||||||
private @Valid List<String> arrayOfString = null;
|
private @Valid List<String> arrayOfString = new ArrayList<>();
|
||||||
private @Valid List<List<Long>> arrayArrayOfInteger = null;
|
private @Valid List<List<Long>> arrayArrayOfInteger = new ArrayList<>();
|
||||||
private @Valid List<List<ReadOnlyFirst>> arrayArrayOfModel = null;
|
private @Valid List<List<ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<>();
|
||||||
|
|
||||||
protected ArrayTest(ArrayTestBuilder<?, ?> b) {
|
protected ArrayTest(ArrayTestBuilder<?, ?> b) {
|
||||||
this.arrayOfString = b.arrayOfString;
|
this.arrayOfString = b.arrayOfString;
|
||||||
|
@ -115,7 +115,7 @@ public class EnumArrays implements Serializable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private @Valid List<ArrayEnumEnum> arrayEnum = null;
|
private @Valid List<ArrayEnumEnum> arrayEnum = new ArrayList<>();
|
||||||
|
|
||||||
protected EnumArrays(EnumArraysBuilder<?, ?> b) {
|
protected EnumArrays(EnumArraysBuilder<?, ?> b) {
|
||||||
this.justSymbol = b.justSymbol;
|
this.justSymbol = b.justSymbol;
|
||||||
|
@ -22,7 +22,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
||||||
public class FileSchemaTestClass implements Serializable {
|
public class FileSchemaTestClass implements Serializable {
|
||||||
private @Valid ModelFile _file;
|
private @Valid ModelFile _file;
|
||||||
private @Valid List<ModelFile> files = null;
|
private @Valid List<ModelFile> files = new ArrayList<>();
|
||||||
|
|
||||||
protected FileSchemaTestClass(FileSchemaTestClassBuilder<?, ?> b) {
|
protected FileSchemaTestClass(FileSchemaTestClassBuilder<?, ?> b) {
|
||||||
this._file = b._file;
|
this._file = b._file;
|
||||||
|
@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
@JsonTypeName("MapTest")
|
@JsonTypeName("MapTest")
|
||||||
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
||||||
public class MapTest implements Serializable {
|
public class MapTest implements Serializable {
|
||||||
private @Valid Map<String, Map<String, String>> mapMapOfString = null;
|
private @Valid Map<String, Map<String, String>> mapMapOfString = new HashMap<>();
|
||||||
public enum InnerEnum {
|
public enum InnerEnum {
|
||||||
|
|
||||||
UPPER(String.valueOf("UPPER")), LOWER(String.valueOf("lower"));
|
UPPER(String.valueOf("UPPER")), LOWER(String.valueOf("lower"));
|
||||||
@ -68,9 +68,9 @@ public class MapTest implements Serializable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private @Valid Map<String, InnerEnum> mapOfEnumString = null;
|
private @Valid Map<String, InnerEnum> mapOfEnumString = new HashMap<>();
|
||||||
private @Valid Map<String, Boolean> directMap = null;
|
private @Valid Map<String, Boolean> directMap = new HashMap<>();
|
||||||
private @Valid Map<String, Boolean> indirectMap = null;
|
private @Valid Map<String, Boolean> indirectMap = new HashMap<>();
|
||||||
|
|
||||||
protected MapTest(MapTestBuilder<?, ?> b) {
|
protected MapTest(MapTestBuilder<?, ?> b) {
|
||||||
this.mapMapOfString = b.mapMapOfString;
|
this.mapMapOfString = b.mapMapOfString;
|
||||||
|
@ -25,7 +25,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
public class MixedPropertiesAndAdditionalPropertiesClass implements Serializable {
|
public class MixedPropertiesAndAdditionalPropertiesClass implements Serializable {
|
||||||
private @Valid UUID uuid;
|
private @Valid UUID uuid;
|
||||||
private @Valid Date dateTime;
|
private @Valid Date dateTime;
|
||||||
private @Valid Map<String, Animal> map = null;
|
private @Valid Map<String, Animal> map = new HashMap<>();
|
||||||
|
|
||||||
protected MixedPropertiesAndAdditionalPropertiesClass(MixedPropertiesAndAdditionalPropertiesClassBuilder<?, ?> b) {
|
protected MixedPropertiesAndAdditionalPropertiesClass(MixedPropertiesAndAdditionalPropertiesClassBuilder<?, ?> b) {
|
||||||
this.uuid = b.uuid;
|
this.uuid = b.uuid;
|
||||||
|
@ -29,7 +29,7 @@ public class Pet implements Serializable {
|
|||||||
private @Valid Category category;
|
private @Valid Category category;
|
||||||
private @Valid String name;
|
private @Valid String name;
|
||||||
private @Valid Set<String> photoUrls = new LinkedHashSet<>();
|
private @Valid Set<String> photoUrls = new LinkedHashSet<>();
|
||||||
private @Valid List<Tag> tags = null;
|
private @Valid List<Tag> tags = new ArrayList<>();
|
||||||
public enum StatusEnum {
|
public enum StatusEnum {
|
||||||
|
|
||||||
AVAILABLE(String.valueOf("available")), PENDING(String.valueOf("pending")), SOLD(String.valueOf("sold"));
|
AVAILABLE(String.valueOf("available")), PENDING(String.valueOf("pending")), SOLD(String.valueOf("sold"));
|
||||||
|
@ -25,31 +25,31 @@ public class XmlItem implements Serializable {
|
|||||||
private @Valid BigDecimal attributeNumber;
|
private @Valid BigDecimal attributeNumber;
|
||||||
private @Valid Integer attributeInteger;
|
private @Valid Integer attributeInteger;
|
||||||
private @Valid Boolean attributeBoolean;
|
private @Valid Boolean attributeBoolean;
|
||||||
private @Valid List<Integer> wrappedArray = null;
|
private @Valid List<Integer> wrappedArray = new ArrayList<>();
|
||||||
private @Valid String nameString;
|
private @Valid String nameString;
|
||||||
private @Valid BigDecimal nameNumber;
|
private @Valid BigDecimal nameNumber;
|
||||||
private @Valid Integer nameInteger;
|
private @Valid Integer nameInteger;
|
||||||
private @Valid Boolean nameBoolean;
|
private @Valid Boolean nameBoolean;
|
||||||
private @Valid List<Integer> nameArray = null;
|
private @Valid List<Integer> nameArray = new ArrayList<>();
|
||||||
private @Valid List<Integer> nameWrappedArray = null;
|
private @Valid List<Integer> nameWrappedArray = new ArrayList<>();
|
||||||
private @Valid String prefixString;
|
private @Valid String prefixString;
|
||||||
private @Valid BigDecimal prefixNumber;
|
private @Valid BigDecimal prefixNumber;
|
||||||
private @Valid Integer prefixInteger;
|
private @Valid Integer prefixInteger;
|
||||||
private @Valid Boolean prefixBoolean;
|
private @Valid Boolean prefixBoolean;
|
||||||
private @Valid List<Integer> prefixArray = null;
|
private @Valid List<Integer> prefixArray = new ArrayList<>();
|
||||||
private @Valid List<Integer> prefixWrappedArray = null;
|
private @Valid List<Integer> prefixWrappedArray = new ArrayList<>();
|
||||||
private @Valid String namespaceString;
|
private @Valid String namespaceString;
|
||||||
private @Valid BigDecimal namespaceNumber;
|
private @Valid BigDecimal namespaceNumber;
|
||||||
private @Valid Integer namespaceInteger;
|
private @Valid Integer namespaceInteger;
|
||||||
private @Valid Boolean namespaceBoolean;
|
private @Valid Boolean namespaceBoolean;
|
||||||
private @Valid List<Integer> namespaceArray = null;
|
private @Valid List<Integer> namespaceArray = new ArrayList<>();
|
||||||
private @Valid List<Integer> namespaceWrappedArray = null;
|
private @Valid List<Integer> namespaceWrappedArray = new ArrayList<>();
|
||||||
private @Valid String prefixNsString;
|
private @Valid String prefixNsString;
|
||||||
private @Valid BigDecimal prefixNsNumber;
|
private @Valid BigDecimal prefixNsNumber;
|
||||||
private @Valid Integer prefixNsInteger;
|
private @Valid Integer prefixNsInteger;
|
||||||
private @Valid Boolean prefixNsBoolean;
|
private @Valid Boolean prefixNsBoolean;
|
||||||
private @Valid List<Integer> prefixNsArray = null;
|
private @Valid List<Integer> prefixNsArray = new ArrayList<>();
|
||||||
private @Valid List<Integer> prefixNsWrappedArray = null;
|
private @Valid List<Integer> prefixNsWrappedArray = new ArrayList<>();
|
||||||
|
|
||||||
protected XmlItem(XmlItemBuilder<?, ?> b) {
|
protected XmlItem(XmlItemBuilder<?, ?> b) {
|
||||||
this.attributeString = b.attributeString;
|
this.attributeString = b.attributeString;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user