[JAVA] [SPRING] [PKMST] [MICRONAUT] XML wireformat: Fix Jackson useWrapping=false, JAXB+Jackson namespaces (#18870)

* Fix XML annotations on model properties (JavaSpring)

* generate JAXB annotations for attributes and elements

* generate wrapper annotations (JAXB and Jackson)

* use XML config from items for annotations of containers

* Add test for Jackson XML wrapper correctness

* Add additional test cases to cover all xml applications in spec

Test now covers all use cases described in
- https://web.archive.org/web/20240424203304/https://swagger.io/docs/specification/data-models/representing-xml/
- https://spec.openapis.org/oas/v3.0.0#xml-arrays

* Fix basename used instead of xmlName when items.xmlName is unset

See last example in spec: https://spec.openapis.org/oas/v3.0.0#xml-arrays

* Harmonize spacing between Annotation attribute name and value

* Refactor and group JAXB vs. Jackson XML annotations, only generate latter if enabled

This is in line with the way the class annotations in `xmlAnnotations.mustache`
are rendered – which only renders the `@Jackson`… xml annotations if
additionalProperty jackson is true.

Also reorder annotation attributes in the following order:
- localName/name
- namespace (optional)
- isAttribute/useWrapping (optional)

* Explicitly render `useWrapping = true` to @JacksonXmlElementWrapper

This was slightly inspired by @jzrebiec via PR #5371.

Wrapping is the default since Jackson 2.1 – so explicitly rendering
this will:
- make generated model work out-of-the-box in Jackson 2.0 for instance
- ensure the models still work if the local `XmlWrapper` was
  configured with `useXmlWrapper(false)`

* Move xml test spec to java resources folder (not spring specific)

* Make test class name match class-under-test

This makes discovery & cross-navigation in IDE easier.

* Add complete xml annotations test for Java generators

* Fix Java PKMST generator not generating @JacksonXmlElementWrapper

* Fix Java microprofile generator missing @JacksonXmlRootElement

* Fix Java microprofile generator not using wrapper annotations and namespaces

* Fix Java Micronaut Client creating invalid (unclosed) @XmlAttribute annotations

* Fix Micronaut Client using wrong localName for @JacksonXmlElementWrapper

* Fix Micronaut client rendering @JacksonXmlProperty annotation twice

* Make Java Micronaut render @JacksonXmlElementWrapper(useWrapping=false) for non-wrapped elements

* Fix Jackson element using `xml.name` when it should be `items.xml.name`

Closes #5989
Closes #3223
Relates to #9371

* Fix JAXB element using `baseName` instead of `xmlName` when items.xmlName is unset

* Remove XML generation debug output from templates

* Remove redundant newline between XML class annotations and class

Brings the SpringCodegen in line with other Java Codegen's

* Remove redundant newline between XML setter annotations and setter

* Fix multiline JavaDoc block indentation and format

* Simplify / condense xml annotation template into single lines

May look a bit more complex, but cuts out a lot of repetitiveness.
Also reorders annotation attributes in the following order:
- localName/name
- namespace (optional)
- isAttribute/useWrapping (optional)

* Harmonize spacing between Annotation attribute name and value

* Remove unused jackson_annotations partial

Was not referenced anywhere in java-helidon resources folder

---------

Co-authored-by: Christian Schuster <christian@dnup.de>
This commit is contained in:
Philzen
2024-06-15 17:02:32 +02:00
committed by GitHub
parent 13facdaab5
commit 642b1a3a95
2726 changed files with 20424 additions and 20024 deletions

View File

@@ -63,10 +63,10 @@ public class AdditionalPropertiesAnyType {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nullable
public String getName() {
return name;
@@ -174,12 +174,12 @@ public class AdditionalPropertiesAnyType {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to AdditionalPropertiesAnyType
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to AdditionalPropertiesAnyType
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!AdditionalPropertiesAnyType.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -264,22 +264,22 @@ public class AdditionalPropertiesAnyType {
}
}
/**
* Create an instance of AdditionalPropertiesAnyType given an JSON string
*
* @param jsonString JSON string
* @return An instance of AdditionalPropertiesAnyType
* @throws IOException if the JSON string is invalid with respect to AdditionalPropertiesAnyType
*/
/**
* Create an instance of AdditionalPropertiesAnyType given an JSON string
*
* @param jsonString JSON string
* @return An instance of AdditionalPropertiesAnyType
* @throws IOException if the JSON string is invalid with respect to AdditionalPropertiesAnyType
*/
public static AdditionalPropertiesAnyType fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, AdditionalPropertiesAnyType.class);
}
/**
* Convert an instance of AdditionalPropertiesAnyType to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of AdditionalPropertiesAnyType to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -64,10 +64,10 @@ public class AdditionalPropertiesArray {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nullable
public String getName() {
return name;
@@ -175,12 +175,12 @@ public class AdditionalPropertiesArray {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to AdditionalPropertiesArray
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to AdditionalPropertiesArray
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!AdditionalPropertiesArray.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -265,22 +265,22 @@ public class AdditionalPropertiesArray {
}
}
/**
* Create an instance of AdditionalPropertiesArray given an JSON string
*
* @param jsonString JSON string
* @return An instance of AdditionalPropertiesArray
* @throws IOException if the JSON string is invalid with respect to AdditionalPropertiesArray
*/
/**
* Create an instance of AdditionalPropertiesArray given an JSON string
*
* @param jsonString JSON string
* @return An instance of AdditionalPropertiesArray
* @throws IOException if the JSON string is invalid with respect to AdditionalPropertiesArray
*/
public static AdditionalPropertiesArray fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, AdditionalPropertiesArray.class);
}
/**
* Convert an instance of AdditionalPropertiesArray to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of AdditionalPropertiesArray to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -63,10 +63,10 @@ public class AdditionalPropertiesBoolean {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nullable
public String getName() {
return name;
@@ -174,12 +174,12 @@ public class AdditionalPropertiesBoolean {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to AdditionalPropertiesBoolean
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to AdditionalPropertiesBoolean
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!AdditionalPropertiesBoolean.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -264,22 +264,22 @@ public class AdditionalPropertiesBoolean {
}
}
/**
* Create an instance of AdditionalPropertiesBoolean given an JSON string
*
* @param jsonString JSON string
* @return An instance of AdditionalPropertiesBoolean
* @throws IOException if the JSON string is invalid with respect to AdditionalPropertiesBoolean
*/
/**
* Create an instance of AdditionalPropertiesBoolean given an JSON string
*
* @param jsonString JSON string
* @return An instance of AdditionalPropertiesBoolean
* @throws IOException if the JSON string is invalid with respect to AdditionalPropertiesBoolean
*/
public static AdditionalPropertiesBoolean fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, AdditionalPropertiesBoolean.class);
}
/**
* Convert an instance of AdditionalPropertiesBoolean to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of AdditionalPropertiesBoolean to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -115,10 +115,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapString
* @return mapString
**/
*/
@javax.annotation.Nullable
public Map<String, String> getMapString() {
return mapString;
@@ -142,10 +142,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapNumber
* @return mapNumber
**/
*/
@javax.annotation.Nullable
public Map<String, BigDecimal> getMapNumber() {
return mapNumber;
@@ -169,10 +169,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapInteger
* @return mapInteger
**/
*/
@javax.annotation.Nullable
public Map<String, Integer> getMapInteger() {
return mapInteger;
@@ -196,10 +196,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapBoolean
* @return mapBoolean
**/
*/
@javax.annotation.Nullable
public Map<String, Boolean> getMapBoolean() {
return mapBoolean;
@@ -223,10 +223,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapArrayInteger
* @return mapArrayInteger
**/
*/
@javax.annotation.Nullable
public Map<String, List<Integer>> getMapArrayInteger() {
return mapArrayInteger;
@@ -250,10 +250,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapArrayAnytype
* @return mapArrayAnytype
**/
*/
@javax.annotation.Nullable
public Map<String, List<Object>> getMapArrayAnytype() {
return mapArrayAnytype;
@@ -277,10 +277,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapMapString
* @return mapMapString
**/
*/
@javax.annotation.Nullable
public Map<String, Map<String, String>> getMapMapString() {
return mapMapString;
@@ -304,10 +304,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapMapAnytype
* @return mapMapAnytype
**/
*/
@javax.annotation.Nullable
public Map<String, Map<String, Object>> getMapMapAnytype() {
return mapMapAnytype;
@@ -323,10 +323,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get anytype1
* @return anytype1
**/
*/
@javax.annotation.Nullable
public Object getAnytype1() {
return anytype1;
@@ -342,10 +342,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get anytype2
* @return anytype2
**/
*/
@javax.annotation.Nullable
public Object getAnytype2() {
return anytype2;
@@ -361,10 +361,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get anytype3
* @return anytype3
**/
*/
@javax.annotation.Nullable
public Object getAnytype3() {
return anytype3;
@@ -456,12 +456,12 @@ public class AdditionalPropertiesClass {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to AdditionalPropertiesClass
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to AdditionalPropertiesClass
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!AdditionalPropertiesClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -508,22 +508,22 @@ public class AdditionalPropertiesClass {
}
}
/**
* Create an instance of AdditionalPropertiesClass given an JSON string
*
* @param jsonString JSON string
* @return An instance of AdditionalPropertiesClass
* @throws IOException if the JSON string is invalid with respect to AdditionalPropertiesClass
*/
/**
* Create an instance of AdditionalPropertiesClass given an JSON string
*
* @param jsonString JSON string
* @return An instance of AdditionalPropertiesClass
* @throws IOException if the JSON string is invalid with respect to AdditionalPropertiesClass
*/
public static AdditionalPropertiesClass fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, AdditionalPropertiesClass.class);
}
/**
* Convert an instance of AdditionalPropertiesClass to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of AdditionalPropertiesClass to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -63,10 +63,10 @@ public class AdditionalPropertiesInteger {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nullable
public String getName() {
return name;
@@ -174,12 +174,12 @@ public class AdditionalPropertiesInteger {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to AdditionalPropertiesInteger
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to AdditionalPropertiesInteger
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!AdditionalPropertiesInteger.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -264,22 +264,22 @@ public class AdditionalPropertiesInteger {
}
}
/**
* Create an instance of AdditionalPropertiesInteger given an JSON string
*
* @param jsonString JSON string
* @return An instance of AdditionalPropertiesInteger
* @throws IOException if the JSON string is invalid with respect to AdditionalPropertiesInteger
*/
/**
* Create an instance of AdditionalPropertiesInteger given an JSON string
*
* @param jsonString JSON string
* @return An instance of AdditionalPropertiesInteger
* @throws IOException if the JSON string is invalid with respect to AdditionalPropertiesInteger
*/
public static AdditionalPropertiesInteger fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, AdditionalPropertiesInteger.class);
}
/**
* Convert an instance of AdditionalPropertiesInteger to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of AdditionalPropertiesInteger to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -64,10 +64,10 @@ public class AdditionalPropertiesNumber {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nullable
public String getName() {
return name;
@@ -175,12 +175,12 @@ public class AdditionalPropertiesNumber {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to AdditionalPropertiesNumber
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to AdditionalPropertiesNumber
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!AdditionalPropertiesNumber.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -265,22 +265,22 @@ public class AdditionalPropertiesNumber {
}
}
/**
* Create an instance of AdditionalPropertiesNumber given an JSON string
*
* @param jsonString JSON string
* @return An instance of AdditionalPropertiesNumber
* @throws IOException if the JSON string is invalid with respect to AdditionalPropertiesNumber
*/
/**
* Create an instance of AdditionalPropertiesNumber given an JSON string
*
* @param jsonString JSON string
* @return An instance of AdditionalPropertiesNumber
* @throws IOException if the JSON string is invalid with respect to AdditionalPropertiesNumber
*/
public static AdditionalPropertiesNumber fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, AdditionalPropertiesNumber.class);
}
/**
* Convert an instance of AdditionalPropertiesNumber to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of AdditionalPropertiesNumber to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -64,10 +64,10 @@ public class AdditionalPropertiesObject {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nullable
public String getName() {
return name;
@@ -175,12 +175,12 @@ public class AdditionalPropertiesObject {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to AdditionalPropertiesObject
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to AdditionalPropertiesObject
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!AdditionalPropertiesObject.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -265,22 +265,22 @@ public class AdditionalPropertiesObject {
}
}
/**
* Create an instance of AdditionalPropertiesObject given an JSON string
*
* @param jsonString JSON string
* @return An instance of AdditionalPropertiesObject
* @throws IOException if the JSON string is invalid with respect to AdditionalPropertiesObject
*/
/**
* Create an instance of AdditionalPropertiesObject given an JSON string
*
* @param jsonString JSON string
* @return An instance of AdditionalPropertiesObject
* @throws IOException if the JSON string is invalid with respect to AdditionalPropertiesObject
*/
public static AdditionalPropertiesObject fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, AdditionalPropertiesObject.class);
}
/**
* Convert an instance of AdditionalPropertiesObject to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of AdditionalPropertiesObject to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -63,10 +63,10 @@ public class AdditionalPropertiesString {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nullable
public String getName() {
return name;
@@ -174,12 +174,12 @@ public class AdditionalPropertiesString {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to AdditionalPropertiesString
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to AdditionalPropertiesString
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!AdditionalPropertiesString.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -264,22 +264,22 @@ public class AdditionalPropertiesString {
}
}
/**
* Create an instance of AdditionalPropertiesString given an JSON string
*
* @param jsonString JSON string
* @return An instance of AdditionalPropertiesString
* @throws IOException if the JSON string is invalid with respect to AdditionalPropertiesString
*/
/**
* Create an instance of AdditionalPropertiesString given an JSON string
*
* @param jsonString JSON string
* @return An instance of AdditionalPropertiesString
* @throws IOException if the JSON string is invalid with respect to AdditionalPropertiesString
*/
public static AdditionalPropertiesString fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, AdditionalPropertiesString.class);
}
/**
* Convert an instance of AdditionalPropertiesString to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of AdditionalPropertiesString to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -68,10 +68,10 @@ public class Animal {
return this;
}
/**
/**
* Get className
* @return className
**/
*/
@javax.annotation.Nonnull
public String getClassName() {
return className;
@@ -87,10 +87,10 @@ public class Animal {
return this;
}
/**
/**
* Get color
* @return color
**/
*/
@javax.annotation.Nullable
public String getColor() {
return color;
@@ -156,12 +156,12 @@ public class Animal {
openapiRequiredFields.add("className");
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Animal
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Animal
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Animal.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -186,22 +186,22 @@ public class Animal {
}
/**
* Create an instance of Animal given an JSON string
*
* @param jsonString JSON string
* @return An instance of Animal
* @throws IOException if the JSON string is invalid with respect to Animal
*/
/**
* Create an instance of Animal given an JSON string
*
* @param jsonString JSON string
* @return An instance of Animal
* @throws IOException if the JSON string is invalid with respect to Animal
*/
public static Animal fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Animal.class);
}
/**
* Convert an instance of Animal to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of Animal to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -74,10 +74,10 @@ public class ArrayOfArrayOfNumberOnly {
return this;
}
/**
/**
* Get arrayArrayNumber
* @return arrayArrayNumber
**/
*/
@javax.annotation.Nullable
public List<List<BigDecimal>> getArrayArrayNumber() {
return arrayArrayNumber;
@@ -139,12 +139,12 @@ public class ArrayOfArrayOfNumberOnly {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to ArrayOfArrayOfNumberOnly
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to ArrayOfArrayOfNumberOnly
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ArrayOfArrayOfNumberOnly.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -195,22 +195,22 @@ public class ArrayOfArrayOfNumberOnly {
}
}
/**
* Create an instance of ArrayOfArrayOfNumberOnly given an JSON string
*
* @param jsonString JSON string
* @return An instance of ArrayOfArrayOfNumberOnly
* @throws IOException if the JSON string is invalid with respect to ArrayOfArrayOfNumberOnly
*/
/**
* Create an instance of ArrayOfArrayOfNumberOnly given an JSON string
*
* @param jsonString JSON string
* @return An instance of ArrayOfArrayOfNumberOnly
* @throws IOException if the JSON string is invalid with respect to ArrayOfArrayOfNumberOnly
*/
public static ArrayOfArrayOfNumberOnly fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ArrayOfArrayOfNumberOnly.class);
}
/**
* Convert an instance of ArrayOfArrayOfNumberOnly to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of ArrayOfArrayOfNumberOnly to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -74,10 +74,10 @@ public class ArrayOfNumberOnly {
return this;
}
/**
/**
* Get arrayNumber
* @return arrayNumber
**/
*/
@javax.annotation.Nullable
public List<BigDecimal> getArrayNumber() {
return arrayNumber;
@@ -139,12 +139,12 @@ public class ArrayOfNumberOnly {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to ArrayOfNumberOnly
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to ArrayOfNumberOnly
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ArrayOfNumberOnly.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -195,22 +195,22 @@ public class ArrayOfNumberOnly {
}
}
/**
* Create an instance of ArrayOfNumberOnly given an JSON string
*
* @param jsonString JSON string
* @return An instance of ArrayOfNumberOnly
* @throws IOException if the JSON string is invalid with respect to ArrayOfNumberOnly
*/
/**
* Create an instance of ArrayOfNumberOnly given an JSON string
*
* @param jsonString JSON string
* @return An instance of ArrayOfNumberOnly
* @throws IOException if the JSON string is invalid with respect to ArrayOfNumberOnly
*/
public static ArrayOfNumberOnly fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ArrayOfNumberOnly.class);
}
/**
* Convert an instance of ArrayOfNumberOnly to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of ArrayOfNumberOnly to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -82,10 +82,10 @@ public class ArrayTest {
return this;
}
/**
/**
* Get arrayOfString
* @return arrayOfString
**/
*/
@javax.annotation.Nullable
public List<String> getArrayOfString() {
return arrayOfString;
@@ -109,10 +109,10 @@ public class ArrayTest {
return this;
}
/**
/**
* Get arrayArrayOfInteger
* @return arrayArrayOfInteger
**/
*/
@javax.annotation.Nullable
public List<List<Long>> getArrayArrayOfInteger() {
return arrayArrayOfInteger;
@@ -136,10 +136,10 @@ public class ArrayTest {
return this;
}
/**
/**
* Get arrayArrayOfModel
* @return arrayArrayOfModel
**/
*/
@javax.annotation.Nullable
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
return arrayArrayOfModel;
@@ -207,12 +207,12 @@ public class ArrayTest {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to ArrayTest
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to ArrayTest
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ArrayTest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -271,22 +271,22 @@ public class ArrayTest {
}
}
/**
* Create an instance of ArrayTest given an JSON string
*
* @param jsonString JSON string
* @return An instance of ArrayTest
* @throws IOException if the JSON string is invalid with respect to ArrayTest
*/
/**
* Create an instance of ArrayTest given an JSON string
*
* @param jsonString JSON string
* @return An instance of ArrayTest
* @throws IOException if the JSON string is invalid with respect to ArrayTest
*/
public static ArrayTest fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ArrayTest.class);
}
/**
* Convert an instance of ArrayTest to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of ArrayTest to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -121,10 +121,10 @@ public class BigCat extends Cat {
return this;
}
/**
/**
* Get kind
* @return kind
**/
*/
@javax.annotation.Nullable
public KindEnum getKind() {
return kind;
@@ -192,12 +192,12 @@ public class BigCat extends Cat {
openapiRequiredFields.add("className");
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to BigCat
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to BigCat
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!BigCat.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -250,22 +250,22 @@ public class BigCat extends Cat {
}
}
/**
* Create an instance of BigCat given an JSON string
*
* @param jsonString JSON string
* @return An instance of BigCat
* @throws IOException if the JSON string is invalid with respect to BigCat
*/
/**
* Create an instance of BigCat given an JSON string
*
* @param jsonString JSON string
* @return An instance of BigCat
* @throws IOException if the JSON string is invalid with respect to BigCat
*/
public static BigCat fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, BigCat.class);
}
/**
* Convert an instance of BigCat to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of BigCat to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -83,10 +83,10 @@ public class Capitalization {
return this;
}
/**
/**
* Get smallCamel
* @return smallCamel
**/
*/
@javax.annotation.Nullable
public String getSmallCamel() {
return smallCamel;
@@ -102,10 +102,10 @@ public class Capitalization {
return this;
}
/**
/**
* Get capitalCamel
* @return capitalCamel
**/
*/
@javax.annotation.Nullable
public String getCapitalCamel() {
return capitalCamel;
@@ -121,10 +121,10 @@ public class Capitalization {
return this;
}
/**
/**
* Get smallSnake
* @return smallSnake
**/
*/
@javax.annotation.Nullable
public String getSmallSnake() {
return smallSnake;
@@ -140,10 +140,10 @@ public class Capitalization {
return this;
}
/**
/**
* Get capitalSnake
* @return capitalSnake
**/
*/
@javax.annotation.Nullable
public String getCapitalSnake() {
return capitalSnake;
@@ -159,10 +159,10 @@ public class Capitalization {
return this;
}
/**
/**
* Get scAETHFlowPoints
* @return scAETHFlowPoints
**/
*/
@javax.annotation.Nullable
public String getScAETHFlowPoints() {
return scAETHFlowPoints;
@@ -178,10 +178,10 @@ public class Capitalization {
return this;
}
/**
/**
* Name of the pet
* @return ATT_NAME
**/
*/
@javax.annotation.Nullable
public String getATTNAME() {
return ATT_NAME;
@@ -258,12 +258,12 @@ public class Capitalization {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Capitalization
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Capitalization
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Capitalization.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -328,22 +328,22 @@ public class Capitalization {
}
}
/**
* Create an instance of Capitalization given an JSON string
*
* @param jsonString JSON string
* @return An instance of Capitalization
* @throws IOException if the JSON string is invalid with respect to Capitalization
*/
/**
* Create an instance of Capitalization given an JSON string
*
* @param jsonString JSON string
* @return An instance of Capitalization
* @throws IOException if the JSON string is invalid with respect to Capitalization
*/
public static Capitalization fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Capitalization.class);
}
/**
* Convert an instance of Capitalization to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of Capitalization to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -65,10 +65,10 @@ public class Cat extends Animal {
return this;
}
/**
/**
* Get declawed
* @return declawed
**/
*/
@javax.annotation.Nullable
public Boolean getDeclawed() {
return declawed;
@@ -135,12 +135,12 @@ public class Cat extends Animal {
openapiRequiredFields.add("className");
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Cat
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Cat
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Cat.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -159,22 +159,22 @@ public class Cat extends Animal {
}
/**
* Create an instance of Cat given an JSON string
*
* @param jsonString JSON string
* @return An instance of Cat
* @throws IOException if the JSON string is invalid with respect to Cat
*/
/**
* Create an instance of Cat given an JSON string
*
* @param jsonString JSON string
* @return An instance of Cat
* @throws IOException if the JSON string is invalid with respect to Cat
*/
public static Cat fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Cat.class);
}
/**
* Convert an instance of Cat to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of Cat to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -67,10 +67,10 @@ public class Category {
return this;
}
/**
/**
* Get id
* @return id
**/
*/
@javax.annotation.Nullable
public Long getId() {
return id;
@@ -86,10 +86,10 @@ public class Category {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nonnull
public String getName() {
return name;
@@ -155,12 +155,12 @@ public class Category {
openapiRequiredFields.add("name");
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Category
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Category
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Category.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -217,22 +217,22 @@ public class Category {
}
}
/**
* Create an instance of Category given an JSON string
*
* @param jsonString JSON string
* @return An instance of Category
* @throws IOException if the JSON string is invalid with respect to Category
*/
/**
* Create an instance of Category given an JSON string
*
* @param jsonString JSON string
* @return An instance of Category
* @throws IOException if the JSON string is invalid with respect to Category
*/
public static Category fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Category.class);
}
/**
* Convert an instance of Category to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of Category to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -63,10 +63,10 @@ public class ClassModel {
return this;
}
/**
/**
* Get propertyClass
* @return propertyClass
**/
*/
@javax.annotation.Nullable
public String getPropertyClass() {
return propertyClass;
@@ -128,12 +128,12 @@ public class ClassModel {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to ClassModel
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to ClassModel
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ClassModel.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -183,22 +183,22 @@ public class ClassModel {
}
}
/**
* Create an instance of ClassModel given an JSON string
*
* @param jsonString JSON string
* @return An instance of ClassModel
* @throws IOException if the JSON string is invalid with respect to ClassModel
*/
/**
* Create an instance of ClassModel given an JSON string
*
* @param jsonString JSON string
* @return An instance of ClassModel
* @throws IOException if the JSON string is invalid with respect to ClassModel
*/
public static ClassModel fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ClassModel.class);
}
/**
* Convert an instance of ClassModel to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of ClassModel to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -63,10 +63,10 @@ public class Client {
return this;
}
/**
/**
* Get client
* @return client
**/
*/
@javax.annotation.Nullable
public String getClient() {
return client;
@@ -128,12 +128,12 @@ public class Client {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Client
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Client
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Client.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -183,22 +183,22 @@ public class Client {
}
}
/**
* Create an instance of Client given an JSON string
*
* @param jsonString JSON string
* @return An instance of Client
* @throws IOException if the JSON string is invalid with respect to Client
*/
/**
* Create an instance of Client given an JSON string
*
* @param jsonString JSON string
* @return An instance of Client
* @throws IOException if the JSON string is invalid with respect to Client
*/
public static Client fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Client.class);
}
/**
* Convert an instance of Client to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of Client to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -65,10 +65,10 @@ public class Dog extends Animal {
return this;
}
/**
/**
* Get breed
* @return breed
**/
*/
@javax.annotation.Nullable
public String getBreed() {
return breed;
@@ -135,12 +135,12 @@ public class Dog extends Animal {
openapiRequiredFields.add("className");
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Dog
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Dog
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Dog.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -193,22 +193,22 @@ public class Dog extends Animal {
}
}
/**
* Create an instance of Dog given an JSON string
*
* @param jsonString JSON string
* @return An instance of Dog
* @throws IOException if the JSON string is invalid with respect to Dog
*/
/**
* Create an instance of Dog given an JSON string
*
* @param jsonString JSON string
* @return An instance of Dog
* @throws IOException if the JSON string is invalid with respect to Dog
*/
public static Dog fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Dog.class);
}
/**
* Convert an instance of Dog to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of Dog to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -173,10 +173,10 @@ public class EnumArrays {
return this;
}
/**
/**
* Get justSymbol
* @return justSymbol
**/
*/
@javax.annotation.Nullable
public JustSymbolEnum getJustSymbol() {
return justSymbol;
@@ -200,10 +200,10 @@ public class EnumArrays {
return this;
}
/**
/**
* Get arrayEnum
* @return arrayEnum
**/
*/
@javax.annotation.Nullable
public List<ArrayEnumEnum> getArrayEnum() {
return arrayEnum;
@@ -268,12 +268,12 @@ public class EnumArrays {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to EnumArrays
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to EnumArrays
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!EnumArrays.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -331,22 +331,22 @@ public class EnumArrays {
}
}
/**
* Create an instance of EnumArrays given an JSON string
*
* @param jsonString JSON string
* @return An instance of EnumArrays
* @throws IOException if the JSON string is invalid with respect to EnumArrays
*/
/**
* Create an instance of EnumArrays given an JSON string
*
* @param jsonString JSON string
* @return An instance of EnumArrays
* @throws IOException if the JSON string is invalid with respect to EnumArrays
*/
public static EnumArrays fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, EnumArrays.class);
}
/**
* Convert an instance of EnumArrays to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of EnumArrays to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -292,10 +292,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get enumString
* @return enumString
**/
*/
@javax.annotation.Nullable
public EnumStringEnum getEnumString() {
return enumString;
@@ -311,10 +311,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get enumStringRequired
* @return enumStringRequired
**/
*/
@javax.annotation.Nonnull
public EnumStringRequiredEnum getEnumStringRequired() {
return enumStringRequired;
@@ -330,10 +330,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get enumInteger
* @return enumInteger
**/
*/
@javax.annotation.Nullable
public EnumIntegerEnum getEnumInteger() {
return enumInteger;
@@ -349,10 +349,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get enumNumber
* @return enumNumber
**/
*/
@javax.annotation.Nullable
public EnumNumberEnum getEnumNumber() {
return enumNumber;
@@ -368,10 +368,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get outerEnum
* @return outerEnum
**/
*/
@javax.annotation.Nullable
public OuterEnum getOuterEnum() {
return outerEnum;
@@ -446,12 +446,12 @@ public class EnumTest {
openapiRequiredFields.add("enum_string_required");
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to EnumTest
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to EnumTest
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!EnumTest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -529,22 +529,22 @@ public class EnumTest {
}
}
/**
* Create an instance of EnumTest given an JSON string
*
* @param jsonString JSON string
* @return An instance of EnumTest
* @throws IOException if the JSON string is invalid with respect to EnumTest
*/
/**
* Create an instance of EnumTest given an JSON string
*
* @param jsonString JSON string
* @return An instance of EnumTest
* @throws IOException if the JSON string is invalid with respect to EnumTest
*/
public static EnumTest fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, EnumTest.class);
}
/**
* Convert an instance of EnumTest to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of EnumTest to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -70,10 +70,10 @@ public class FileSchemaTestClass {
return this;
}
/**
/**
* Get _file
* @return _file
**/
*/
@javax.annotation.Nullable
public ModelFile getFile() {
return _file;
@@ -97,10 +97,10 @@ public class FileSchemaTestClass {
return this;
}
/**
/**
* Get files
* @return files
**/
*/
@javax.annotation.Nullable
public List<ModelFile> getFiles() {
return files;
@@ -165,12 +165,12 @@ public class FileSchemaTestClass {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to FileSchemaTestClass
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to FileSchemaTestClass
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!FileSchemaTestClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -235,22 +235,22 @@ public class FileSchemaTestClass {
}
}
/**
* Create an instance of FileSchemaTestClass given an JSON string
*
* @param jsonString JSON string
* @return An instance of FileSchemaTestClass
* @throws IOException if the JSON string is invalid with respect to FileSchemaTestClass
*/
/**
* Create an instance of FileSchemaTestClass given an JSON string
*
* @param jsonString JSON string
* @return An instance of FileSchemaTestClass
* @throws IOException if the JSON string is invalid with respect to FileSchemaTestClass
*/
public static FileSchemaTestClass fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, FileSchemaTestClass.class);
}
/**
* Convert an instance of FileSchemaTestClass to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of FileSchemaTestClass to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -120,12 +120,12 @@ public class FormatTest {
return this;
}
/**
/**
* Get integer
* minimum: 10
* maximum: 100
* @return integer
**/
*/
@javax.annotation.Nullable
public Integer getInteger() {
return integer;
@@ -141,12 +141,12 @@ public class FormatTest {
return this;
}
/**
/**
* Get int32
* minimum: 20
* maximum: 200
* @return int32
**/
*/
@javax.annotation.Nullable
public Integer getInt32() {
return int32;
@@ -162,10 +162,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get int64
* @return int64
**/
*/
@javax.annotation.Nullable
public Long getInt64() {
return int64;
@@ -181,12 +181,12 @@ public class FormatTest {
return this;
}
/**
/**
* Get number
* minimum: 32.1
* maximum: 543.2
* @return number
**/
*/
@javax.annotation.Nonnull
public BigDecimal getNumber() {
return number;
@@ -202,12 +202,12 @@ public class FormatTest {
return this;
}
/**
/**
* Get _float
* minimum: 54.3
* maximum: 987.6
* @return _float
**/
*/
@javax.annotation.Nullable
public Float getFloat() {
return _float;
@@ -223,12 +223,12 @@ public class FormatTest {
return this;
}
/**
/**
* Get _double
* minimum: 67.8
* maximum: 123.4
* @return _double
**/
*/
@javax.annotation.Nullable
public Double getDouble() {
return _double;
@@ -244,10 +244,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get string
* @return string
**/
*/
@javax.annotation.Nullable
public String getString() {
return string;
@@ -263,10 +263,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get _byte
* @return _byte
**/
*/
@javax.annotation.Nonnull
public byte[] getByte() {
return _byte;
@@ -282,10 +282,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get binary
* @return binary
**/
*/
@javax.annotation.Nullable
public File getBinary() {
return binary;
@@ -301,10 +301,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get date
* @return date
**/
*/
@javax.annotation.Nonnull
public LocalDate getDate() {
return date;
@@ -320,10 +320,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get dateTime
* @return dateTime
**/
*/
@javax.annotation.Nullable
public OffsetDateTime getDateTime() {
return dateTime;
@@ -339,10 +339,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get uuid
* @return uuid
**/
*/
@javax.annotation.Nullable
public UUID getUuid() {
return uuid;
@@ -358,10 +358,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get password
* @return password
**/
*/
@javax.annotation.Nonnull
public String getPassword() {
return password;
@@ -377,10 +377,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get bigDecimal
* @return bigDecimal
**/
*/
@javax.annotation.Nullable
public BigDecimal getBigDecimal() {
return bigDecimal;
@@ -485,12 +485,12 @@ public class FormatTest {
openapiRequiredFields.add("password");
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to FormatTest
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to FormatTest
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!FormatTest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -553,22 +553,22 @@ public class FormatTest {
}
}
/**
* Create an instance of FormatTest given an JSON string
*
* @param jsonString JSON string
* @return An instance of FormatTest
* @throws IOException if the JSON string is invalid with respect to FormatTest
*/
/**
* Create an instance of FormatTest given an JSON string
*
* @param jsonString JSON string
* @return An instance of FormatTest
* @throws IOException if the JSON string is invalid with respect to FormatTest
*/
public static FormatTest fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, FormatTest.class);
}
/**
* Convert an instance of FormatTest to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of FormatTest to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -71,10 +71,10 @@ public class HasOnlyReadOnly {
this.foo = foo;
}
/**
/**
* Get bar
* @return bar
**/
*/
@javax.annotation.Nullable
public String getBar() {
return bar;
@@ -82,10 +82,10 @@ public class HasOnlyReadOnly {
/**
/**
* Get foo
* @return foo
**/
*/
@javax.annotation.Nullable
public String getFoo() {
return foo;
@@ -147,12 +147,12 @@ public class HasOnlyReadOnly {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to HasOnlyReadOnly
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to HasOnlyReadOnly
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!HasOnlyReadOnly.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -205,22 +205,22 @@ public class HasOnlyReadOnly {
}
}
/**
* Create an instance of HasOnlyReadOnly given an JSON string
*
* @param jsonString JSON string
* @return An instance of HasOnlyReadOnly
* @throws IOException if the JSON string is invalid with respect to HasOnlyReadOnly
*/
/**
* Create an instance of HasOnlyReadOnly given an JSON string
*
* @param jsonString JSON string
* @return An instance of HasOnlyReadOnly
* @throws IOException if the JSON string is invalid with respect to HasOnlyReadOnly
*/
public static HasOnlyReadOnly fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, HasOnlyReadOnly.class);
}
/**
* Convert an instance of HasOnlyReadOnly to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of HasOnlyReadOnly to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -137,10 +137,10 @@ public class MapTest {
return this;
}
/**
/**
* Get mapMapOfString
* @return mapMapOfString
**/
*/
@javax.annotation.Nullable
public Map<String, Map<String, String>> getMapMapOfString() {
return mapMapOfString;
@@ -164,10 +164,10 @@ public class MapTest {
return this;
}
/**
/**
* Get mapOfEnumString
* @return mapOfEnumString
**/
*/
@javax.annotation.Nullable
public Map<String, InnerEnum> getMapOfEnumString() {
return mapOfEnumString;
@@ -191,10 +191,10 @@ public class MapTest {
return this;
}
/**
/**
* Get directMap
* @return directMap
**/
*/
@javax.annotation.Nullable
public Map<String, Boolean> getDirectMap() {
return directMap;
@@ -218,10 +218,10 @@ public class MapTest {
return this;
}
/**
/**
* Get indirectMap
* @return indirectMap
**/
*/
@javax.annotation.Nullable
public Map<String, Boolean> getIndirectMap() {
return indirectMap;
@@ -292,12 +292,12 @@ public class MapTest {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to MapTest
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to MapTest
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!MapTest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -344,22 +344,22 @@ public class MapTest {
}
}
/**
* Create an instance of MapTest given an JSON string
*
* @param jsonString JSON string
* @return An instance of MapTest
* @throws IOException if the JSON string is invalid with respect to MapTest
*/
/**
* Create an instance of MapTest given an JSON string
*
* @param jsonString JSON string
* @return An instance of MapTest
* @throws IOException if the JSON string is invalid with respect to MapTest
*/
public static MapTest fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, MapTest.class);
}
/**
* Convert an instance of MapTest to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of MapTest to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -76,10 +76,10 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
return this;
}
/**
/**
* Get uuid
* @return uuid
**/
*/
@javax.annotation.Nullable
public UUID getUuid() {
return uuid;
@@ -95,10 +95,10 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
return this;
}
/**
/**
* Get dateTime
* @return dateTime
**/
*/
@javax.annotation.Nullable
public OffsetDateTime getDateTime() {
return dateTime;
@@ -122,10 +122,10 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
return this;
}
/**
/**
* Get map
* @return map
**/
*/
@javax.annotation.Nullable
public Map<String, Animal> getMap() {
return map;
@@ -193,12 +193,12 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to MixedPropertiesAndAdditionalPropertiesClass
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to MixedPropertiesAndAdditionalPropertiesClass
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!MixedPropertiesAndAdditionalPropertiesClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -248,22 +248,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
}
}
/**
* Create an instance of MixedPropertiesAndAdditionalPropertiesClass given an JSON string
*
* @param jsonString JSON string
* @return An instance of MixedPropertiesAndAdditionalPropertiesClass
* @throws IOException if the JSON string is invalid with respect to MixedPropertiesAndAdditionalPropertiesClass
*/
/**
* Create an instance of MixedPropertiesAndAdditionalPropertiesClass given an JSON string
*
* @param jsonString JSON string
* @return An instance of MixedPropertiesAndAdditionalPropertiesClass
* @throws IOException if the JSON string is invalid with respect to MixedPropertiesAndAdditionalPropertiesClass
*/
public static MixedPropertiesAndAdditionalPropertiesClass fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, MixedPropertiesAndAdditionalPropertiesClass.class);
}
/**
* Convert an instance of MixedPropertiesAndAdditionalPropertiesClass to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of MixedPropertiesAndAdditionalPropertiesClass to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -67,10 +67,10 @@ public class Model200Response {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nullable
public Integer getName() {
return name;
@@ -86,10 +86,10 @@ public class Model200Response {
return this;
}
/**
/**
* Get propertyClass
* @return propertyClass
**/
*/
@javax.annotation.Nullable
public String getPropertyClass() {
return propertyClass;
@@ -154,12 +154,12 @@ public class Model200Response {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Model200Response
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Model200Response
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Model200Response.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -209,22 +209,22 @@ public class Model200Response {
}
}
/**
* Create an instance of Model200Response given an JSON string
*
* @param jsonString JSON string
* @return An instance of Model200Response
* @throws IOException if the JSON string is invalid with respect to Model200Response
*/
/**
* Create an instance of Model200Response given an JSON string
*
* @param jsonString JSON string
* @return An instance of Model200Response
* @throws IOException if the JSON string is invalid with respect to Model200Response
*/
public static Model200Response fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Model200Response.class);
}
/**
* Convert an instance of Model200Response to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of Model200Response to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -71,10 +71,10 @@ public class ModelApiResponse {
return this;
}
/**
/**
* Get code
* @return code
**/
*/
@javax.annotation.Nullable
public Integer getCode() {
return code;
@@ -90,10 +90,10 @@ public class ModelApiResponse {
return this;
}
/**
/**
* Get type
* @return type
**/
*/
@javax.annotation.Nullable
public String getType() {
return type;
@@ -109,10 +109,10 @@ public class ModelApiResponse {
return this;
}
/**
/**
* Get message
* @return message
**/
*/
@javax.annotation.Nullable
public String getMessage() {
return message;
@@ -180,12 +180,12 @@ public class ModelApiResponse {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to ModelApiResponse
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to ModelApiResponse
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ModelApiResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -238,22 +238,22 @@ public class ModelApiResponse {
}
}
/**
* Create an instance of ModelApiResponse given an JSON string
*
* @param jsonString JSON string
* @return An instance of ModelApiResponse
* @throws IOException if the JSON string is invalid with respect to ModelApiResponse
*/
/**
* Create an instance of ModelApiResponse given an JSON string
*
* @param jsonString JSON string
* @return An instance of ModelApiResponse
* @throws IOException if the JSON string is invalid with respect to ModelApiResponse
*/
public static ModelApiResponse fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ModelApiResponse.class);
}
/**
* Convert an instance of ModelApiResponse to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of ModelApiResponse to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -63,10 +63,10 @@ public class ModelFile {
return this;
}
/**
/**
* Test capitalization
* @return sourceURI
**/
*/
@javax.annotation.Nullable
public String getSourceURI() {
return sourceURI;
@@ -128,12 +128,12 @@ public class ModelFile {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to ModelFile
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to ModelFile
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ModelFile.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -183,22 +183,22 @@ public class ModelFile {
}
}
/**
* Create an instance of ModelFile given an JSON string
*
* @param jsonString JSON string
* @return An instance of ModelFile
* @throws IOException if the JSON string is invalid with respect to ModelFile
*/
/**
* Create an instance of ModelFile given an JSON string
*
* @param jsonString JSON string
* @return An instance of ModelFile
* @throws IOException if the JSON string is invalid with respect to ModelFile
*/
public static ModelFile fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ModelFile.class);
}
/**
* Convert an instance of ModelFile to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of ModelFile to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -63,10 +63,10 @@ public class ModelList {
return this;
}
/**
/**
* Get _123list
* @return _123list
**/
*/
@javax.annotation.Nullable
public String get123list() {
return _123list;
@@ -128,12 +128,12 @@ public class ModelList {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to ModelList
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to ModelList
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ModelList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -183,22 +183,22 @@ public class ModelList {
}
}
/**
* Create an instance of ModelList given an JSON string
*
* @param jsonString JSON string
* @return An instance of ModelList
* @throws IOException if the JSON string is invalid with respect to ModelList
*/
/**
* Create an instance of ModelList given an JSON string
*
* @param jsonString JSON string
* @return An instance of ModelList
* @throws IOException if the JSON string is invalid with respect to ModelList
*/
public static ModelList fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ModelList.class);
}
/**
* Convert an instance of ModelList to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of ModelList to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -63,10 +63,10 @@ public class ModelReturn {
return this;
}
/**
/**
* Get _return
* @return _return
**/
*/
@javax.annotation.Nullable
public Integer getReturn() {
return _return;
@@ -128,12 +128,12 @@ public class ModelReturn {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to ModelReturn
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to ModelReturn
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ModelReturn.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -180,22 +180,22 @@ public class ModelReturn {
}
}
/**
* Create an instance of ModelReturn given an JSON string
*
* @param jsonString JSON string
* @return An instance of ModelReturn
* @throws IOException if the JSON string is invalid with respect to ModelReturn
*/
/**
* Create an instance of ModelReturn given an JSON string
*
* @param jsonString JSON string
* @return An instance of ModelReturn
* @throws IOException if the JSON string is invalid with respect to ModelReturn
*/
public static ModelReturn fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ModelReturn.class);
}
/**
* Convert an instance of ModelReturn to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of ModelReturn to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -84,10 +84,10 @@ public class Name {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nonnull
public Integer getName() {
return name;
@@ -98,10 +98,10 @@ public class Name {
}
/**
/**
* Get snakeCase
* @return snakeCase
**/
*/
@javax.annotation.Nullable
public Integer getSnakeCase() {
return snakeCase;
@@ -114,10 +114,10 @@ public class Name {
return this;
}
/**
/**
* Get property
* @return property
**/
*/
@javax.annotation.Nullable
public String getProperty() {
return property;
@@ -128,10 +128,10 @@ public class Name {
}
/**
/**
* Get _123number
* @return _123number
**/
*/
@javax.annotation.Nullable
public Integer get123number() {
return _123number;
@@ -200,12 +200,12 @@ public class Name {
openapiRequiredFields.add("name");
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Name
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Name
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Name.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -262,22 +262,22 @@ public class Name {
}
}
/**
* Create an instance of Name given an JSON string
*
* @param jsonString JSON string
* @return An instance of Name
* @throws IOException if the JSON string is invalid with respect to Name
*/
/**
* Create an instance of Name given an JSON string
*
* @param jsonString JSON string
* @return An instance of Name
* @throws IOException if the JSON string is invalid with respect to Name
*/
public static Name fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Name.class);
}
/**
* Convert an instance of Name to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of Name to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -64,10 +64,10 @@ public class NumberOnly {
return this;
}
/**
/**
* Get justNumber
* @return justNumber
**/
*/
@javax.annotation.Nullable
public BigDecimal getJustNumber() {
return justNumber;
@@ -129,12 +129,12 @@ public class NumberOnly {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to NumberOnly
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to NumberOnly
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!NumberOnly.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -181,22 +181,22 @@ public class NumberOnly {
}
}
/**
* Create an instance of NumberOnly given an JSON string
*
* @param jsonString JSON string
* @return An instance of NumberOnly
* @throws IOException if the JSON string is invalid with respect to NumberOnly
*/
/**
* Create an instance of NumberOnly given an JSON string
*
* @param jsonString JSON string
* @return An instance of NumberOnly
* @throws IOException if the JSON string is invalid with respect to NumberOnly
*/
public static NumberOnly fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, NumberOnly.class);
}
/**
* Convert an instance of NumberOnly to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of NumberOnly to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -138,10 +138,10 @@ public class Order {
return this;
}
/**
/**
* Get id
* @return id
**/
*/
@javax.annotation.Nullable
public Long getId() {
return id;
@@ -157,10 +157,10 @@ public class Order {
return this;
}
/**
/**
* Get petId
* @return petId
**/
*/
@javax.annotation.Nullable
public Long getPetId() {
return petId;
@@ -176,10 +176,10 @@ public class Order {
return this;
}
/**
/**
* Get quantity
* @return quantity
**/
*/
@javax.annotation.Nullable
public Integer getQuantity() {
return quantity;
@@ -195,10 +195,10 @@ public class Order {
return this;
}
/**
/**
* Get shipDate
* @return shipDate
**/
*/
@javax.annotation.Nullable
public OffsetDateTime getShipDate() {
return shipDate;
@@ -214,10 +214,10 @@ public class Order {
return this;
}
/**
/**
* Order Status
* @return status
**/
*/
@javax.annotation.Nullable
public StatusEnum getStatus() {
return status;
@@ -233,10 +233,10 @@ public class Order {
return this;
}
/**
/**
* Get complete
* @return complete
**/
*/
@javax.annotation.Nullable
public Boolean getComplete() {
return complete;
@@ -313,12 +313,12 @@ public class Order {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Order
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Order
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Order.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -372,22 +372,22 @@ public class Order {
}
}
/**
* Create an instance of Order given an JSON string
*
* @param jsonString JSON string
* @return An instance of Order
* @throws IOException if the JSON string is invalid with respect to Order
*/
/**
* Create an instance of Order given an JSON string
*
* @param jsonString JSON string
* @return An instance of Order
* @throws IOException if the JSON string is invalid with respect to Order
*/
public static Order fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Order.class);
}
/**
* Convert an instance of Order to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of Order to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -72,10 +72,10 @@ public class OuterComposite {
return this;
}
/**
/**
* Get myNumber
* @return myNumber
**/
*/
@javax.annotation.Nullable
public BigDecimal getMyNumber() {
return myNumber;
@@ -91,10 +91,10 @@ public class OuterComposite {
return this;
}
/**
/**
* Get myString
* @return myString
**/
*/
@javax.annotation.Nullable
public String getMyString() {
return myString;
@@ -110,10 +110,10 @@ public class OuterComposite {
return this;
}
/**
/**
* Get myBoolean
* @return myBoolean
**/
*/
@javax.annotation.Nullable
public Boolean getMyBoolean() {
return myBoolean;
@@ -181,12 +181,12 @@ public class OuterComposite {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to OuterComposite
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to OuterComposite
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!OuterComposite.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -236,22 +236,22 @@ public class OuterComposite {
}
}
/**
* Create an instance of OuterComposite given an JSON string
*
* @param jsonString JSON string
* @return An instance of OuterComposite
* @throws IOException if the JSON string is invalid with respect to OuterComposite
*/
/**
* Create an instance of OuterComposite given an JSON string
*
* @param jsonString JSON string
* @return An instance of OuterComposite
* @throws IOException if the JSON string is invalid with respect to OuterComposite
*/
public static OuterComposite fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, OuterComposite.class);
}
/**
* Convert an instance of OuterComposite to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of OuterComposite to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -143,10 +143,10 @@ public class Pet {
return this;
}
/**
/**
* Get id
* @return id
**/
*/
@javax.annotation.Nullable
public Long getId() {
return id;
@@ -162,10 +162,10 @@ public class Pet {
return this;
}
/**
/**
* Get category
* @return category
**/
*/
@javax.annotation.Nullable
public Category getCategory() {
return category;
@@ -181,10 +181,10 @@ public class Pet {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nonnull
public String getName() {
return name;
@@ -208,10 +208,10 @@ public class Pet {
return this;
}
/**
/**
* Get photoUrls
* @return photoUrls
**/
*/
@javax.annotation.Nonnull
public Set<String> getPhotoUrls() {
return photoUrls;
@@ -235,10 +235,10 @@ public class Pet {
return this;
}
/**
/**
* Get tags
* @return tags
**/
*/
@javax.annotation.Nullable
public List<Tag> getTags() {
return tags;
@@ -254,10 +254,10 @@ public class Pet {
return this;
}
/**
/**
* pet status in the store
* @return status
**/
*/
@javax.annotation.Nullable
public StatusEnum getStatus() {
return status;
@@ -336,12 +336,12 @@ public class Pet {
openapiRequiredFields.add("photoUrls");
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Pet
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Pet
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Pet.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -429,22 +429,22 @@ public class Pet {
}
}
/**
* Create an instance of Pet given an JSON string
*
* @param jsonString JSON string
* @return An instance of Pet
* @throws IOException if the JSON string is invalid with respect to Pet
*/
/**
* Create an instance of Pet given an JSON string
*
* @param jsonString JSON string
* @return An instance of Pet
* @throws IOException if the JSON string is invalid with respect to Pet
*/
public static Pet fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Pet.class);
}
/**
* Convert an instance of Pet to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of Pet to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -69,10 +69,10 @@ public class ReadOnlyFirst {
this.bar = bar;
}
/**
/**
* Get bar
* @return bar
**/
*/
@javax.annotation.Nullable
public String getBar() {
return bar;
@@ -85,10 +85,10 @@ public class ReadOnlyFirst {
return this;
}
/**
/**
* Get baz
* @return baz
**/
*/
@javax.annotation.Nullable
public String getBaz() {
return baz;
@@ -153,12 +153,12 @@ public class ReadOnlyFirst {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to ReadOnlyFirst
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to ReadOnlyFirst
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ReadOnlyFirst.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -211,22 +211,22 @@ public class ReadOnlyFirst {
}
}
/**
* Create an instance of ReadOnlyFirst given an JSON string
*
* @param jsonString JSON string
* @return An instance of ReadOnlyFirst
* @throws IOException if the JSON string is invalid with respect to ReadOnlyFirst
*/
/**
* Create an instance of ReadOnlyFirst given an JSON string
*
* @param jsonString JSON string
* @return An instance of ReadOnlyFirst
* @throws IOException if the JSON string is invalid with respect to ReadOnlyFirst
*/
public static ReadOnlyFirst fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ReadOnlyFirst.class);
}
/**
* Convert an instance of ReadOnlyFirst to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of ReadOnlyFirst to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -63,10 +63,10 @@ public class SpecialModelName {
return this;
}
/**
/**
* Get $specialPropertyName
* @return $specialPropertyName
**/
*/
@javax.annotation.Nullable
public Long get$SpecialPropertyName() {
return $specialPropertyName;
@@ -128,12 +128,12 @@ public class SpecialModelName {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to SpecialModelName
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to SpecialModelName
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!SpecialModelName.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -180,22 +180,22 @@ public class SpecialModelName {
}
}
/**
* Create an instance of SpecialModelName given an JSON string
*
* @param jsonString JSON string
* @return An instance of SpecialModelName
* @throws IOException if the JSON string is invalid with respect to SpecialModelName
*/
/**
* Create an instance of SpecialModelName given an JSON string
*
* @param jsonString JSON string
* @return An instance of SpecialModelName
* @throws IOException if the JSON string is invalid with respect to SpecialModelName
*/
public static SpecialModelName fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, SpecialModelName.class);
}
/**
* Convert an instance of SpecialModelName to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of SpecialModelName to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -67,10 +67,10 @@ public class Tag {
return this;
}
/**
/**
* Get id
* @return id
**/
*/
@javax.annotation.Nullable
public Long getId() {
return id;
@@ -86,10 +86,10 @@ public class Tag {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nullable
public String getName() {
return name;
@@ -154,12 +154,12 @@ public class Tag {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Tag
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to Tag
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Tag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -209,22 +209,22 @@ public class Tag {
}
}
/**
* Create an instance of Tag given an JSON string
*
* @param jsonString JSON string
* @return An instance of Tag
* @throws IOException if the JSON string is invalid with respect to Tag
*/
/**
* Create an instance of Tag given an JSON string
*
* @param jsonString JSON string
* @return An instance of Tag
* @throws IOException if the JSON string is invalid with respect to Tag
*/
public static Tag fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Tag.class);
}
/**
* Convert an instance of Tag to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of Tag to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -82,10 +82,10 @@ public class TypeHolderDefault {
return this;
}
/**
/**
* Get stringItem
* @return stringItem
**/
*/
@javax.annotation.Nonnull
public String getStringItem() {
return stringItem;
@@ -101,10 +101,10 @@ public class TypeHolderDefault {
return this;
}
/**
/**
* Get numberItem
* @return numberItem
**/
*/
@javax.annotation.Nonnull
public BigDecimal getNumberItem() {
return numberItem;
@@ -120,10 +120,10 @@ public class TypeHolderDefault {
return this;
}
/**
/**
* Get integerItem
* @return integerItem
**/
*/
@javax.annotation.Nonnull
public Integer getIntegerItem() {
return integerItem;
@@ -139,10 +139,10 @@ public class TypeHolderDefault {
return this;
}
/**
/**
* Get boolItem
* @return boolItem
**/
*/
@javax.annotation.Nonnull
public Boolean getBoolItem() {
return boolItem;
@@ -166,10 +166,10 @@ public class TypeHolderDefault {
return this;
}
/**
/**
* Get arrayItem
* @return arrayItem
**/
*/
@javax.annotation.Nonnull
public List<Integer> getArrayItem() {
return arrayItem;
@@ -248,12 +248,12 @@ public class TypeHolderDefault {
openapiRequiredFields.add("array_item");
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to TypeHolderDefault
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to TypeHolderDefault
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!TypeHolderDefault.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -316,22 +316,22 @@ public class TypeHolderDefault {
}
}
/**
* Create an instance of TypeHolderDefault given an JSON string
*
* @param jsonString JSON string
* @return An instance of TypeHolderDefault
* @throws IOException if the JSON string is invalid with respect to TypeHolderDefault
*/
/**
* Create an instance of TypeHolderDefault given an JSON string
*
* @param jsonString JSON string
* @return An instance of TypeHolderDefault
* @throws IOException if the JSON string is invalid with respect to TypeHolderDefault
*/
public static TypeHolderDefault fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, TypeHolderDefault.class);
}
/**
* Convert an instance of TypeHolderDefault to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of TypeHolderDefault to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -86,10 +86,10 @@ public class TypeHolderExample {
return this;
}
/**
/**
* Get stringItem
* @return stringItem
**/
*/
@javax.annotation.Nonnull
public String getStringItem() {
return stringItem;
@@ -105,10 +105,10 @@ public class TypeHolderExample {
return this;
}
/**
/**
* Get numberItem
* @return numberItem
**/
*/
@javax.annotation.Nonnull
public BigDecimal getNumberItem() {
return numberItem;
@@ -124,10 +124,10 @@ public class TypeHolderExample {
return this;
}
/**
/**
* Get floatItem
* @return floatItem
**/
*/
@javax.annotation.Nonnull
public Float getFloatItem() {
return floatItem;
@@ -143,10 +143,10 @@ public class TypeHolderExample {
return this;
}
/**
/**
* Get integerItem
* @return integerItem
**/
*/
@javax.annotation.Nonnull
public Integer getIntegerItem() {
return integerItem;
@@ -162,10 +162,10 @@ public class TypeHolderExample {
return this;
}
/**
/**
* Get boolItem
* @return boolItem
**/
*/
@javax.annotation.Nonnull
public Boolean getBoolItem() {
return boolItem;
@@ -189,10 +189,10 @@ public class TypeHolderExample {
return this;
}
/**
/**
* Get arrayItem
* @return arrayItem
**/
*/
@javax.annotation.Nonnull
public List<Integer> getArrayItem() {
return arrayItem;
@@ -275,12 +275,12 @@ public class TypeHolderExample {
openapiRequiredFields.add("array_item");
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to TypeHolderExample
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to TypeHolderExample
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!TypeHolderExample.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -343,22 +343,22 @@ public class TypeHolderExample {
}
}
/**
* Create an instance of TypeHolderExample given an JSON string
*
* @param jsonString JSON string
* @return An instance of TypeHolderExample
* @throws IOException if the JSON string is invalid with respect to TypeHolderExample
*/
/**
* Create an instance of TypeHolderExample given an JSON string
*
* @param jsonString JSON string
* @return An instance of TypeHolderExample
* @throws IOException if the JSON string is invalid with respect to TypeHolderExample
*/
public static TypeHolderExample fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, TypeHolderExample.class);
}
/**
* Convert an instance of TypeHolderExample to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of TypeHolderExample to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -91,10 +91,10 @@ public class User {
return this;
}
/**
/**
* Get id
* @return id
**/
*/
@javax.annotation.Nullable
public Long getId() {
return id;
@@ -110,10 +110,10 @@ public class User {
return this;
}
/**
/**
* Get username
* @return username
**/
*/
@javax.annotation.Nullable
public String getUsername() {
return username;
@@ -129,10 +129,10 @@ public class User {
return this;
}
/**
/**
* Get firstName
* @return firstName
**/
*/
@javax.annotation.Nullable
public String getFirstName() {
return firstName;
@@ -148,10 +148,10 @@ public class User {
return this;
}
/**
/**
* Get lastName
* @return lastName
**/
*/
@javax.annotation.Nullable
public String getLastName() {
return lastName;
@@ -167,10 +167,10 @@ public class User {
return this;
}
/**
/**
* Get email
* @return email
**/
*/
@javax.annotation.Nullable
public String getEmail() {
return email;
@@ -186,10 +186,10 @@ public class User {
return this;
}
/**
/**
* Get password
* @return password
**/
*/
@javax.annotation.Nullable
public String getPassword() {
return password;
@@ -205,10 +205,10 @@ public class User {
return this;
}
/**
/**
* Get phone
* @return phone
**/
*/
@javax.annotation.Nullable
public String getPhone() {
return phone;
@@ -224,10 +224,10 @@ public class User {
return this;
}
/**
/**
* User Status
* @return userStatus
**/
*/
@javax.annotation.Nullable
public Integer getUserStatus() {
return userStatus;
@@ -310,12 +310,12 @@ public class User {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to User
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to User
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!User.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -380,22 +380,22 @@ public class User {
}
}
/**
* Create an instance of User given an JSON string
*
* @param jsonString JSON string
* @return An instance of User
* @throws IOException if the JSON string is invalid with respect to User
*/
/**
* Create an instance of User given an JSON string
*
* @param jsonString JSON string
* @return An instance of User
* @throws IOException if the JSON string is invalid with respect to User
*/
public static User fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, User.class);
}
/**
* Convert an instance of User to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of User to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -178,10 +178,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get attributeString
* @return attributeString
**/
*/
@javax.annotation.Nullable
public String getAttributeString() {
return attributeString;
@@ -197,10 +197,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get attributeNumber
* @return attributeNumber
**/
*/
@javax.annotation.Nullable
public BigDecimal getAttributeNumber() {
return attributeNumber;
@@ -216,10 +216,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get attributeInteger
* @return attributeInteger
**/
*/
@javax.annotation.Nullable
public Integer getAttributeInteger() {
return attributeInteger;
@@ -235,10 +235,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get attributeBoolean
* @return attributeBoolean
**/
*/
@javax.annotation.Nullable
public Boolean getAttributeBoolean() {
return attributeBoolean;
@@ -262,10 +262,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get wrappedArray
* @return wrappedArray
**/
*/
@javax.annotation.Nullable
public List<Integer> getWrappedArray() {
return wrappedArray;
@@ -281,10 +281,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get nameString
* @return nameString
**/
*/
@javax.annotation.Nullable
public String getNameString() {
return nameString;
@@ -300,10 +300,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get nameNumber
* @return nameNumber
**/
*/
@javax.annotation.Nullable
public BigDecimal getNameNumber() {
return nameNumber;
@@ -319,10 +319,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get nameInteger
* @return nameInteger
**/
*/
@javax.annotation.Nullable
public Integer getNameInteger() {
return nameInteger;
@@ -338,10 +338,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get nameBoolean
* @return nameBoolean
**/
*/
@javax.annotation.Nullable
public Boolean getNameBoolean() {
return nameBoolean;
@@ -365,10 +365,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get nameArray
* @return nameArray
**/
*/
@javax.annotation.Nullable
public List<Integer> getNameArray() {
return nameArray;
@@ -392,10 +392,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get nameWrappedArray
* @return nameWrappedArray
**/
*/
@javax.annotation.Nullable
public List<Integer> getNameWrappedArray() {
return nameWrappedArray;
@@ -411,10 +411,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get prefixString
* @return prefixString
**/
*/
@javax.annotation.Nullable
public String getPrefixString() {
return prefixString;
@@ -430,10 +430,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get prefixNumber
* @return prefixNumber
**/
*/
@javax.annotation.Nullable
public BigDecimal getPrefixNumber() {
return prefixNumber;
@@ -449,10 +449,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get prefixInteger
* @return prefixInteger
**/
*/
@javax.annotation.Nullable
public Integer getPrefixInteger() {
return prefixInteger;
@@ -468,10 +468,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get prefixBoolean
* @return prefixBoolean
**/
*/
@javax.annotation.Nullable
public Boolean getPrefixBoolean() {
return prefixBoolean;
@@ -495,10 +495,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get prefixArray
* @return prefixArray
**/
*/
@javax.annotation.Nullable
public List<Integer> getPrefixArray() {
return prefixArray;
@@ -522,10 +522,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get prefixWrappedArray
* @return prefixWrappedArray
**/
*/
@javax.annotation.Nullable
public List<Integer> getPrefixWrappedArray() {
return prefixWrappedArray;
@@ -541,10 +541,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get namespaceString
* @return namespaceString
**/
*/
@javax.annotation.Nullable
public String getNamespaceString() {
return namespaceString;
@@ -560,10 +560,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get namespaceNumber
* @return namespaceNumber
**/
*/
@javax.annotation.Nullable
public BigDecimal getNamespaceNumber() {
return namespaceNumber;
@@ -579,10 +579,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get namespaceInteger
* @return namespaceInteger
**/
*/
@javax.annotation.Nullable
public Integer getNamespaceInteger() {
return namespaceInteger;
@@ -598,10 +598,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get namespaceBoolean
* @return namespaceBoolean
**/
*/
@javax.annotation.Nullable
public Boolean getNamespaceBoolean() {
return namespaceBoolean;
@@ -625,10 +625,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get namespaceArray
* @return namespaceArray
**/
*/
@javax.annotation.Nullable
public List<Integer> getNamespaceArray() {
return namespaceArray;
@@ -652,10 +652,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get namespaceWrappedArray
* @return namespaceWrappedArray
**/
*/
@javax.annotation.Nullable
public List<Integer> getNamespaceWrappedArray() {
return namespaceWrappedArray;
@@ -671,10 +671,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get prefixNsString
* @return prefixNsString
**/
*/
@javax.annotation.Nullable
public String getPrefixNsString() {
return prefixNsString;
@@ -690,10 +690,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get prefixNsNumber
* @return prefixNsNumber
**/
*/
@javax.annotation.Nullable
public BigDecimal getPrefixNsNumber() {
return prefixNsNumber;
@@ -709,10 +709,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get prefixNsInteger
* @return prefixNsInteger
**/
*/
@javax.annotation.Nullable
public Integer getPrefixNsInteger() {
return prefixNsInteger;
@@ -728,10 +728,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get prefixNsBoolean
* @return prefixNsBoolean
**/
*/
@javax.annotation.Nullable
public Boolean getPrefixNsBoolean() {
return prefixNsBoolean;
@@ -755,10 +755,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get prefixNsArray
* @return prefixNsArray
**/
*/
@javax.annotation.Nullable
public List<Integer> getPrefixNsArray() {
return prefixNsArray;
@@ -782,10 +782,10 @@ public class XmlItem {
return this;
}
/**
/**
* Get prefixNsWrappedArray
* @return prefixNsWrappedArray
**/
*/
@javax.annotation.Nullable
public List<Integer> getPrefixNsWrappedArray() {
return prefixNsWrappedArray;
@@ -931,12 +931,12 @@ public class XmlItem {
openapiRequiredFields = new HashSet<String>();
}
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to XmlItem
*/
/**
* Validates the JSON Element and throws an exception if issues found
*
* @param jsonElement JSON Element
* @throws IOException if the JSON Element is invalid with respect to XmlItem
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!XmlItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -1034,22 +1034,22 @@ public class XmlItem {
}
}
/**
* Create an instance of XmlItem given an JSON string
*
* @param jsonString JSON string
* @return An instance of XmlItem
* @throws IOException if the JSON string is invalid with respect to XmlItem
*/
/**
* Create an instance of XmlItem given an JSON string
*
* @param jsonString JSON string
* @return An instance of XmlItem
* @throws IOException if the JSON string is invalid with respect to XmlItem
*/
public static XmlItem fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, XmlItem.class);
}
/**
* Convert an instance of XmlItem to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of XmlItem to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}