[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

@@ -102,10 +102,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapProperty
* @return mapProperty
**/
*/
@javax.annotation.Nullable
public Map<String, String> getMapProperty() {
return mapProperty;
@@ -129,10 +129,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapOfMapProperty
* @return mapOfMapProperty
**/
*/
@javax.annotation.Nullable
public Map<String, Map<String, String>> getMapOfMapProperty() {
return mapOfMapProperty;
@@ -148,10 +148,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get anytype1
* @return anytype1
**/
*/
@javax.annotation.Nullable
public Object getAnytype1() {
return anytype1;
@@ -167,10 +167,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapWithUndeclaredPropertiesAnytype1
* @return mapWithUndeclaredPropertiesAnytype1
**/
*/
@javax.annotation.Nullable
public Object getMapWithUndeclaredPropertiesAnytype1() {
return mapWithUndeclaredPropertiesAnytype1;
@@ -186,10 +186,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapWithUndeclaredPropertiesAnytype2
* @return mapWithUndeclaredPropertiesAnytype2
**/
*/
@javax.annotation.Nullable
public Object getMapWithUndeclaredPropertiesAnytype2() {
return mapWithUndeclaredPropertiesAnytype2;
@@ -213,10 +213,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapWithUndeclaredPropertiesAnytype3
* @return mapWithUndeclaredPropertiesAnytype3
**/
*/
@javax.annotation.Nullable
public Map<String, Object> getMapWithUndeclaredPropertiesAnytype3() {
return mapWithUndeclaredPropertiesAnytype3;
@@ -232,10 +232,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* an object with no declared properties and no undeclared properties, hence it&#39;s an empty map.
* @return emptyMap
**/
*/
@javax.annotation.Nullable
public Object getEmptyMap() {
return emptyMap;
@@ -259,10 +259,10 @@ public class AdditionalPropertiesClass {
return this;
}
/**
/**
* Get mapWithUndeclaredPropertiesString
* @return mapWithUndeclaredPropertiesString
**/
*/
@javax.annotation.Nullable
public Map<String, String> getMapWithUndeclaredPropertiesString() {
return mapWithUndeclaredPropertiesString;
@@ -402,12 +402,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
@@ -489,22 +489,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

@@ -77,10 +77,10 @@ public class AllOfModelArrayAnyOf {
return this;
}
/**
/**
* Get id
* @return id
**/
*/
@javax.annotation.Nullable
public Long getId() {
return id;
@@ -96,10 +96,10 @@ public class AllOfModelArrayAnyOf {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nonnull
public String getName() {
return name;
@@ -115,10 +115,10 @@ public class AllOfModelArrayAnyOf {
return this;
}
/**
/**
* Get linkListColumn1
* @return linkListColumn1
**/
*/
@javax.annotation.Nullable
public AllOfModelArrayAnyOfAllOfLinkListColumn1 getLinkListColumn1() {
return linkListColumn1;
@@ -134,10 +134,10 @@ public class AllOfModelArrayAnyOf {
return this;
}
/**
/**
* Get attributes
* @return attributes
**/
*/
@javax.annotation.Nullable
public AllOfModelArrayAnyOfAllOfAttributes getAttributes() {
return attributes;
@@ -255,12 +255,12 @@ public class AllOfModelArrayAnyOf {
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 AllOfModelArrayAnyOf
*/
/**
* 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 AllOfModelArrayAnyOf
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!AllOfModelArrayAnyOf.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -360,22 +360,22 @@ public class AllOfModelArrayAnyOf {
}
}
/**
* Create an instance of AllOfModelArrayAnyOf given an JSON string
*
* @param jsonString JSON string
* @return An instance of AllOfModelArrayAnyOf
* @throws IOException if the JSON string is invalid with respect to AllOfModelArrayAnyOf
*/
/**
* Create an instance of AllOfModelArrayAnyOf given an JSON string
*
* @param jsonString JSON string
* @return An instance of AllOfModelArrayAnyOf
* @throws IOException if the JSON string is invalid with respect to AllOfModelArrayAnyOf
*/
public static AllOfModelArrayAnyOf fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, AllOfModelArrayAnyOf.class);
}
/**
* Convert an instance of AllOfModelArrayAnyOf to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of AllOfModelArrayAnyOf to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -64,10 +64,10 @@ public class AllOfModelArrayAnyOfAllOfAttributes {
return this;
}
/**
/**
* Get C
* @return C
**/
*/
@javax.annotation.Nullable
public AllOfModelArrayAnyOfAllOfAttributesC getC() {
return C;
@@ -175,12 +175,12 @@ public class AllOfModelArrayAnyOfAllOfAttributes {
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 AllOfModelArrayAnyOfAllOfAttributes
*/
/**
* 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 AllOfModelArrayAnyOfAllOfAttributes
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!AllOfModelArrayAnyOfAllOfAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -266,22 +266,22 @@ public class AllOfModelArrayAnyOfAllOfAttributes {
}
}
/**
* Create an instance of AllOfModelArrayAnyOfAllOfAttributes given an JSON string
*
* @param jsonString JSON string
* @return An instance of AllOfModelArrayAnyOfAllOfAttributes
* @throws IOException if the JSON string is invalid with respect to AllOfModelArrayAnyOfAllOfAttributes
*/
/**
* Create an instance of AllOfModelArrayAnyOfAllOfAttributes given an JSON string
*
* @param jsonString JSON string
* @return An instance of AllOfModelArrayAnyOfAllOfAttributes
* @throws IOException if the JSON string is invalid with respect to AllOfModelArrayAnyOfAllOfAttributes
*/
public static AllOfModelArrayAnyOfAllOfAttributes fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, AllOfModelArrayAnyOfAllOfAttributes.class);
}
/**
* Convert an instance of AllOfModelArrayAnyOfAllOfAttributes to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of AllOfModelArrayAnyOfAllOfAttributes to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -74,10 +74,10 @@ public class AllOfModelArrayAnyOfAllOfLinkListColumn1 {
return this;
}
/**
/**
* Get value
* @return value
**/
*/
@javax.annotation.Nonnull
public List<AllOfModelArrayAnyOfAllOfLinkListColumn1Value> getValue() {
return value;
@@ -186,12 +186,12 @@ public class AllOfModelArrayAnyOfAllOfLinkListColumn1 {
openapiRequiredFields.add("value");
}
/**
* 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 AllOfModelArrayAnyOfAllOfLinkListColumn1
*/
/**
* 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 AllOfModelArrayAnyOfAllOfLinkListColumn1
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!AllOfModelArrayAnyOfAllOfLinkListColumn1.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -290,22 +290,22 @@ public class AllOfModelArrayAnyOfAllOfLinkListColumn1 {
}
}
/**
* Create an instance of AllOfModelArrayAnyOfAllOfLinkListColumn1 given an JSON string
*
* @param jsonString JSON string
* @return An instance of AllOfModelArrayAnyOfAllOfLinkListColumn1
* @throws IOException if the JSON string is invalid with respect to AllOfModelArrayAnyOfAllOfLinkListColumn1
*/
/**
* Create an instance of AllOfModelArrayAnyOfAllOfLinkListColumn1 given an JSON string
*
* @param jsonString JSON string
* @return An instance of AllOfModelArrayAnyOfAllOfLinkListColumn1
* @throws IOException if the JSON string is invalid with respect to AllOfModelArrayAnyOfAllOfLinkListColumn1
*/
public static AllOfModelArrayAnyOfAllOfLinkListColumn1 fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, AllOfModelArrayAnyOfAllOfLinkListColumn1.class);
}
/**
* Convert an instance of AllOfModelArrayAnyOfAllOfLinkListColumn1 to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of AllOfModelArrayAnyOfAllOfLinkListColumn1 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;
@@ -202,12 +202,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
@@ -229,22 +229,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

@@ -67,10 +67,10 @@ public class Apple {
return this;
}
/**
/**
* Get cultivar
* @return cultivar
**/
*/
@javax.annotation.Nullable
public String getCultivar() {
return cultivar;
@@ -86,10 +86,10 @@ public class Apple {
return this;
}
/**
/**
* Get origin
* @return origin
**/
*/
@javax.annotation.Nullable
public String getOrigin() {
return origin;
@@ -200,12 +200,12 @@ public class Apple {
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 Apple
*/
/**
* 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 Apple
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Apple.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -293,22 +293,22 @@ public class Apple {
}
}
/**
* Create an instance of Apple given an JSON string
*
* @param jsonString JSON string
* @return An instance of Apple
* @throws IOException if the JSON string is invalid with respect to Apple
*/
/**
* Create an instance of Apple given an JSON string
*
* @param jsonString JSON string
* @return An instance of Apple
* @throws IOException if the JSON string is invalid with respect to Apple
*/
public static Apple fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Apple.class);
}
/**
* Convert an instance of Apple to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of Apple to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -67,10 +67,10 @@ public class AppleReq {
return this;
}
/**
/**
* Get cultivar
* @return cultivar
**/
*/
@javax.annotation.Nonnull
public String getCultivar() {
return cultivar;
@@ -86,10 +86,10 @@ public class AppleReq {
return this;
}
/**
/**
* Get mealy
* @return mealy
**/
*/
@javax.annotation.Nullable
public Boolean getMealy() {
return mealy;
@@ -155,12 +155,12 @@ public class AppleReq {
openapiRequiredFields.add("cultivar");
}
/**
* 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 AppleReq
*/
/**
* 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 AppleReq
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!AppleReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -217,22 +217,22 @@ public class AppleReq {
}
}
/**
* Create an instance of AppleReq given an JSON string
*
* @param jsonString JSON string
* @return An instance of AppleReq
* @throws IOException if the JSON string is invalid with respect to AppleReq
*/
/**
* Create an instance of AppleReq given an JSON string
*
* @param jsonString JSON string
* @return An instance of AppleReq
* @throws IOException if the JSON string is invalid with respect to AppleReq
*/
public static AppleReq fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, AppleReq.class);
}
/**
* Convert an instance of AppleReq to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of AppleReq to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -77,10 +77,10 @@ public class ArrayDefault {
return this;
}
/**
/**
* Get withDefaultEmptyBracket
* @return withDefaultEmptyBracket
**/
*/
@javax.annotation.Nullable
public List<String> getWithDefaultEmptyBracket() {
return withDefaultEmptyBracket;
@@ -104,10 +104,10 @@ public class ArrayDefault {
return this;
}
/**
/**
* Get withoutDefault
* @return withoutDefault
**/
*/
@javax.annotation.Nullable
public List<String> getWithoutDefault() {
return withoutDefault;
@@ -218,12 +218,12 @@ public class ArrayDefault {
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 ArrayDefault
*/
/**
* 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 ArrayDefault
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ArrayDefault.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -313,22 +313,22 @@ public class ArrayDefault {
}
}
/**
* Create an instance of ArrayDefault given an JSON string
*
* @param jsonString JSON string
* @return An instance of ArrayDefault
* @throws IOException if the JSON string is invalid with respect to ArrayDefault
*/
/**
* Create an instance of ArrayDefault given an JSON string
*
* @param jsonString JSON string
* @return An instance of ArrayDefault
* @throws IOException if the JSON string is invalid with respect to ArrayDefault
*/
public static ArrayDefault fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ArrayDefault.class);
}
/**
* Convert an instance of ArrayDefault to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of ArrayDefault 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;
@@ -185,12 +185,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
@@ -276,22 +276,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 ArrayOfInlineAllOf {
return this;
}
/**
/**
* Get id
* @return id
**/
*/
@javax.annotation.Nullable
public Long getId() {
return id;
@@ -93,10 +93,10 @@ public class ArrayOfInlineAllOf {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nonnull
public String getName() {
return name;
@@ -120,10 +120,10 @@ public class ArrayOfInlineAllOf {
return this;
}
/**
/**
* Get arrayAllofDogProperty
* @return arrayAllofDogProperty
**/
*/
@javax.annotation.Nullable
public List<ArrayOfInlineAllOfArrayAllofDogPropertyInner> getArrayAllofDogProperty() {
return arrayAllofDogProperty;
@@ -238,12 +238,12 @@ public class ArrayOfInlineAllOf {
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 ArrayOfInlineAllOf
*/
/**
* 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 ArrayOfInlineAllOf
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ArrayOfInlineAllOf.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -349,22 +349,22 @@ public class ArrayOfInlineAllOf {
}
}
/**
* Create an instance of ArrayOfInlineAllOf given an JSON string
*
* @param jsonString JSON string
* @return An instance of ArrayOfInlineAllOf
* @throws IOException if the JSON string is invalid with respect to ArrayOfInlineAllOf
*/
/**
* Create an instance of ArrayOfInlineAllOf given an JSON string
*
* @param jsonString JSON string
* @return An instance of ArrayOfInlineAllOf
* @throws IOException if the JSON string is invalid with respect to ArrayOfInlineAllOf
*/
public static ArrayOfInlineAllOf fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ArrayOfInlineAllOf.class);
}
/**
* Convert an instance of ArrayOfInlineAllOf to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of ArrayOfInlineAllOf to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -67,10 +67,10 @@ public class ArrayOfInlineAllOfArrayAllofDogPropertyInner {
return this;
}
/**
/**
* Get breed
* @return breed
**/
*/
@javax.annotation.Nullable
public String getBreed() {
return breed;
@@ -86,10 +86,10 @@ public class ArrayOfInlineAllOfArrayAllofDogPropertyInner {
return this;
}
/**
/**
* Get color
* @return color
**/
*/
@javax.annotation.Nullable
public String getColor() {
return color;
@@ -200,12 +200,12 @@ public class ArrayOfInlineAllOfArrayAllofDogPropertyInner {
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 ArrayOfInlineAllOfArrayAllofDogPropertyInner
*/
/**
* 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 ArrayOfInlineAllOfArrayAllofDogPropertyInner
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ArrayOfInlineAllOfArrayAllofDogPropertyInner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -293,22 +293,22 @@ public class ArrayOfInlineAllOfArrayAllofDogPropertyInner {
}
}
/**
* Create an instance of ArrayOfInlineAllOfArrayAllofDogPropertyInner given an JSON string
*
* @param jsonString JSON string
* @return An instance of ArrayOfInlineAllOfArrayAllofDogPropertyInner
* @throws IOException if the JSON string is invalid with respect to ArrayOfInlineAllOfArrayAllofDogPropertyInner
*/
/**
* Create an instance of ArrayOfInlineAllOfArrayAllofDogPropertyInner given an JSON string
*
* @param jsonString JSON string
* @return An instance of ArrayOfInlineAllOfArrayAllofDogPropertyInner
* @throws IOException if the JSON string is invalid with respect to ArrayOfInlineAllOfArrayAllofDogPropertyInner
*/
public static ArrayOfInlineAllOfArrayAllofDogPropertyInner fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ArrayOfInlineAllOfArrayAllofDogPropertyInner.class);
}
/**
* Convert an instance of ArrayOfInlineAllOfArrayAllofDogPropertyInner to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of ArrayOfInlineAllOfArrayAllofDogPropertyInner 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;
@@ -185,12 +185,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
@@ -276,22 +276,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;
@@ -253,12 +253,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
@@ -352,22 +352,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

@@ -64,10 +64,10 @@ public class Banana {
return this;
}
/**
/**
* Get lengthCm
* @return lengthCm
**/
*/
@javax.annotation.Nullable
public BigDecimal getLengthCm() {
return lengthCm;
@@ -175,12 +175,12 @@ public class Banana {
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 Banana
*/
/**
* 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 Banana
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Banana.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -262,22 +262,22 @@ public class Banana {
}
}
/**
* Create an instance of Banana given an JSON string
*
* @param jsonString JSON string
* @return An instance of Banana
* @throws IOException if the JSON string is invalid with respect to Banana
*/
/**
* Create an instance of Banana given an JSON string
*
* @param jsonString JSON string
* @return An instance of Banana
* @throws IOException if the JSON string is invalid with respect to Banana
*/
public static Banana fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Banana.class);
}
/**
* Convert an instance of Banana to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of Banana to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -68,10 +68,10 @@ public class BananaReq {
return this;
}
/**
/**
* Get lengthCm
* @return lengthCm
**/
*/
@javax.annotation.Nonnull
public BigDecimal getLengthCm() {
return lengthCm;
@@ -87,10 +87,10 @@ public class BananaReq {
return this;
}
/**
/**
* Get sweet
* @return sweet
**/
*/
@javax.annotation.Nullable
public Boolean getSweet() {
return sweet;
@@ -156,12 +156,12 @@ public class BananaReq {
openapiRequiredFields.add("lengthCm");
}
/**
* 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 BananaReq
*/
/**
* 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 BananaReq
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!BananaReq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -215,22 +215,22 @@ public class BananaReq {
}
}
/**
* Create an instance of BananaReq given an JSON string
*
* @param jsonString JSON string
* @return An instance of BananaReq
* @throws IOException if the JSON string is invalid with respect to BananaReq
*/
/**
* Create an instance of BananaReq given an JSON string
*
* @param jsonString JSON string
* @return An instance of BananaReq
* @throws IOException if the JSON string is invalid with respect to BananaReq
*/
public static BananaReq fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, BananaReq.class);
}
/**
* Convert an instance of BananaReq to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of BananaReq to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -63,10 +63,10 @@ public class BasquePig {
return this;
}
/**
/**
* Get className
* @return className
**/
*/
@javax.annotation.Nonnull
public String getClassName() {
return className;
@@ -175,12 +175,12 @@ public class BasquePig {
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 BasquePig
*/
/**
* 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 BasquePig
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!BasquePig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -272,22 +272,22 @@ public class BasquePig {
}
}
/**
* Create an instance of BasquePig given an JSON string
*
* @param jsonString JSON string
* @return An instance of BasquePig
* @throws IOException if the JSON string is invalid with respect to BasquePig
*/
/**
* Create an instance of BasquePig given an JSON string
*
* @param jsonString JSON string
* @return An instance of BasquePig
* @throws IOException if the JSON string is invalid with respect to BasquePig
*/
public static BasquePig fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, BasquePig.class);
}
/**
* Convert an instance of BasquePig to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of BasquePig 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;
@@ -304,12 +304,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
@@ -409,22 +409,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

@@ -66,10 +66,10 @@ public class Cat extends Animal {
return this;
}
/**
/**
* Get declawed
* @return declawed
**/
*/
@javax.annotation.Nullable
public Boolean getDeclawed() {
return declawed;
@@ -182,12 +182,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
@@ -275,22 +275,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;
@@ -201,12 +201,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
@@ -298,22 +298,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;
@@ -174,12 +174,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
@@ -264,22 +264,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;
@@ -174,12 +174,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
@@ -264,22 +264,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

@@ -67,10 +67,10 @@ public class ComplexQuadrilateral {
return this;
}
/**
/**
* Get shapeType
* @return shapeType
**/
*/
@javax.annotation.Nonnull
public String getShapeType() {
return shapeType;
@@ -86,10 +86,10 @@ public class ComplexQuadrilateral {
return this;
}
/**
/**
* Get quadrilateralType
* @return quadrilateralType
**/
*/
@javax.annotation.Nonnull
public String getQuadrilateralType() {
return quadrilateralType;
@@ -202,12 +202,12 @@ public class ComplexQuadrilateral {
openapiRequiredFields.add("quadrilateralType");
}
/**
* 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 ComplexQuadrilateral
*/
/**
* 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 ComplexQuadrilateral
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ComplexQuadrilateral.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -302,22 +302,22 @@ public class ComplexQuadrilateral {
}
}
/**
* Create an instance of ComplexQuadrilateral given an JSON string
*
* @param jsonString JSON string
* @return An instance of ComplexQuadrilateral
* @throws IOException if the JSON string is invalid with respect to ComplexQuadrilateral
*/
/**
* Create an instance of ComplexQuadrilateral given an JSON string
*
* @param jsonString JSON string
* @return An instance of ComplexQuadrilateral
* @throws IOException if the JSON string is invalid with respect to ComplexQuadrilateral
*/
public static ComplexQuadrilateral fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ComplexQuadrilateral.class);
}
/**
* Convert an instance of ComplexQuadrilateral to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of ComplexQuadrilateral to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -63,10 +63,10 @@ public class DanishPig {
return this;
}
/**
/**
* Get className
* @return className
**/
*/
@javax.annotation.Nonnull
public String getClassName() {
return className;
@@ -175,12 +175,12 @@ public class DanishPig {
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 DanishPig
*/
/**
* 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 DanishPig
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!DanishPig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -272,22 +272,22 @@ public class DanishPig {
}
}
/**
* Create an instance of DanishPig given an JSON string
*
* @param jsonString JSON string
* @return An instance of DanishPig
* @throws IOException if the JSON string is invalid with respect to DanishPig
*/
/**
* Create an instance of DanishPig given an JSON string
*
* @param jsonString JSON string
* @return An instance of DanishPig
* @throws IOException if the JSON string is invalid with respect to DanishPig
*/
public static DanishPig fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, DanishPig.class);
}
/**
* Convert an instance of DanishPig to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of DanishPig to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -65,10 +65,10 @@ public class DeprecatedObject {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nullable
public String getName() {
return name;
@@ -176,12 +176,12 @@ public class DeprecatedObject {
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 DeprecatedObject
*/
/**
* 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 DeprecatedObject
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!DeprecatedObject.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -266,22 +266,22 @@ public class DeprecatedObject {
}
}
/**
* Create an instance of DeprecatedObject given an JSON string
*
* @param jsonString JSON string
* @return An instance of DeprecatedObject
* @throws IOException if the JSON string is invalid with respect to DeprecatedObject
*/
/**
* Create an instance of DeprecatedObject given an JSON string
*
* @param jsonString JSON string
* @return An instance of DeprecatedObject
* @throws IOException if the JSON string is invalid with respect to DeprecatedObject
*/
public static DeprecatedObject fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, DeprecatedObject.class);
}
/**
* Convert an instance of DeprecatedObject to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of DeprecatedObject 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;
@@ -181,12 +181,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
@@ -274,22 +274,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

@@ -82,10 +82,10 @@ public class Drawing {
return this;
}
/**
/**
* Get mainShape
* @return mainShape
**/
*/
@javax.annotation.Nullable
public Shape getMainShape() {
return mainShape;
@@ -101,10 +101,10 @@ public class Drawing {
return this;
}
/**
/**
* Get shapeOrNull
* @return shapeOrNull
**/
*/
@javax.annotation.Nullable
public ShapeOrNull getShapeOrNull() {
return shapeOrNull;
@@ -120,10 +120,10 @@ public class Drawing {
return this;
}
/**
/**
* Get nullableShape
* @return nullableShape
**/
*/
@javax.annotation.Nullable
public NullableShape getNullableShape() {
return nullableShape;
@@ -147,10 +147,10 @@ public class Drawing {
return this;
}
/**
/**
* Get shapes
* @return shapes
**/
*/
@javax.annotation.Nullable
public List<Shape> getShapes() {
return shapes;
@@ -278,12 +278,12 @@ public class Drawing {
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 Drawing
*/
/**
* 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 Drawing
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Drawing.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -391,22 +391,22 @@ public class Drawing {
}
}
/**
* Create an instance of Drawing given an JSON string
*
* @param jsonString JSON string
* @return An instance of Drawing
* @throws IOException if the JSON string is invalid with respect to Drawing
*/
/**
* Create an instance of Drawing given an JSON string
*
* @param jsonString JSON string
* @return An instance of Drawing
* @throws IOException if the JSON string is invalid with respect to Drawing
*/
public static Drawing fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Drawing.class);
}
/**
* Convert an instance of Drawing to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of Drawing 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;
@@ -314,12 +314,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
@@ -412,22 +412,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

@@ -115,10 +115,10 @@ public class EnumStringDiscriminator {
return this;
}
/**
/**
* enum string type
* @return enumStrType
**/
*/
@javax.annotation.Nonnull
public EnumStrTypeEnum getEnumStrType() {
return enumStrType;
@@ -227,12 +227,12 @@ public class EnumStringDiscriminator {
openapiRequiredFields.add("enum_str_type");
}
/**
* 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 EnumStringDiscriminator
*/
/**
* 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 EnumStringDiscriminator
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!EnumStringDiscriminator.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -320,22 +320,22 @@ public class EnumStringDiscriminator {
}
}
/**
* Create an instance of EnumStringDiscriminator given an JSON string
*
* @param jsonString JSON string
* @return An instance of EnumStringDiscriminator
* @throws IOException if the JSON string is invalid with respect to EnumStringDiscriminator
*/
/**
* Create an instance of EnumStringDiscriminator given an JSON string
*
* @param jsonString JSON string
* @return An instance of EnumStringDiscriminator
* @throws IOException if the JSON string is invalid with respect to EnumStringDiscriminator
*/
public static EnumStringDiscriminator fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, EnumStringDiscriminator.class);
}
/**
* Convert an instance of EnumStringDiscriminator to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of EnumStringDiscriminator to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -364,10 +364,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get enumString
* @return enumString
**/
*/
@javax.annotation.Nullable
public EnumStringEnum getEnumString() {
return enumString;
@@ -383,10 +383,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get enumStringRequired
* @return enumStringRequired
**/
*/
@javax.annotation.Nonnull
public EnumStringRequiredEnum getEnumStringRequired() {
return enumStringRequired;
@@ -402,10 +402,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get enumInteger
* @return enumInteger
**/
*/
@javax.annotation.Nullable
public EnumIntegerEnum getEnumInteger() {
return enumInteger;
@@ -421,10 +421,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get enumIntegerOnly
* @return enumIntegerOnly
**/
*/
@javax.annotation.Nullable
public EnumIntegerOnlyEnum getEnumIntegerOnly() {
return enumIntegerOnly;
@@ -440,10 +440,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get enumNumber
* @return enumNumber
**/
*/
@javax.annotation.Nullable
public EnumNumberEnum getEnumNumber() {
return enumNumber;
@@ -459,10 +459,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get outerEnum
* @return outerEnum
**/
*/
@javax.annotation.Nullable
public OuterEnum getOuterEnum() {
return outerEnum;
@@ -478,10 +478,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get outerEnumInteger
* @return outerEnumInteger
**/
*/
@javax.annotation.Nullable
public OuterEnumInteger getOuterEnumInteger() {
return outerEnumInteger;
@@ -497,10 +497,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get outerEnumDefaultValue
* @return outerEnumDefaultValue
**/
*/
@javax.annotation.Nullable
public OuterEnumDefaultValue getOuterEnumDefaultValue() {
return outerEnumDefaultValue;
@@ -516,10 +516,10 @@ public class EnumTest {
return this;
}
/**
/**
* Get outerEnumIntegerDefaultValue
* @return outerEnumIntegerDefaultValue
**/
*/
@javax.annotation.Nullable
public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() {
return outerEnumIntegerDefaultValue;
@@ -663,12 +663,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
@@ -797,22 +797,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

@@ -67,10 +67,10 @@ public class EquilateralTriangle {
return this;
}
/**
/**
* Get shapeType
* @return shapeType
**/
*/
@javax.annotation.Nonnull
public String getShapeType() {
return shapeType;
@@ -86,10 +86,10 @@ public class EquilateralTriangle {
return this;
}
/**
/**
* Get triangleType
* @return triangleType
**/
*/
@javax.annotation.Nonnull
public String getTriangleType() {
return triangleType;
@@ -202,12 +202,12 @@ public class EquilateralTriangle {
openapiRequiredFields.add("triangleType");
}
/**
* 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 EquilateralTriangle
*/
/**
* 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 EquilateralTriangle
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!EquilateralTriangle.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -302,22 +302,22 @@ public class EquilateralTriangle {
}
}
/**
* Create an instance of EquilateralTriangle given an JSON string
*
* @param jsonString JSON string
* @return An instance of EquilateralTriangle
* @throws IOException if the JSON string is invalid with respect to EquilateralTriangle
*/
/**
* Create an instance of EquilateralTriangle given an JSON string
*
* @param jsonString JSON string
* @return An instance of EquilateralTriangle
* @throws IOException if the JSON string is invalid with respect to EquilateralTriangle
*/
public static EquilateralTriangle fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, EquilateralTriangle.class);
}
/**
* Convert an instance of EquilateralTriangle to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of EquilateralTriangle 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;
@@ -211,12 +211,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
@@ -316,22 +316,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

@@ -63,10 +63,10 @@ public class Foo {
return this;
}
/**
/**
* Get bar
* @return bar
**/
*/
@javax.annotation.Nullable
public String getBar() {
return bar;
@@ -174,12 +174,12 @@ public class Foo {
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 Foo
*/
/**
* 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 Foo
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Foo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -264,22 +264,22 @@ public class Foo {
}
}
/**
* Create an instance of Foo given an JSON string
*
* @param jsonString JSON string
* @return An instance of Foo
* @throws IOException if the JSON string is invalid with respect to Foo
*/
/**
* Create an instance of Foo given an JSON string
*
* @param jsonString JSON string
* @return An instance of Foo
* @throws IOException if the JSON string is invalid with respect to Foo
*/
public static Foo fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Foo.class);
}
/**
* Convert an instance of Foo to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of Foo to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -64,10 +64,10 @@ public class FooGetDefaultResponse {
return this;
}
/**
/**
* Get string
* @return string
**/
*/
@javax.annotation.Nullable
public Foo getString() {
return string;
@@ -175,12 +175,12 @@ public class FooGetDefaultResponse {
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 FooGetDefaultResponse
*/
/**
* 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 FooGetDefaultResponse
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!FooGetDefaultResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -266,22 +266,22 @@ public class FooGetDefaultResponse {
}
}
/**
* Create an instance of FooGetDefaultResponse given an JSON string
*
* @param jsonString JSON string
* @return An instance of FooGetDefaultResponse
* @throws IOException if the JSON string is invalid with respect to FooGetDefaultResponse
*/
/**
* Create an instance of FooGetDefaultResponse given an JSON string
*
* @param jsonString JSON string
* @return An instance of FooGetDefaultResponse
* @throws IOException if the JSON string is invalid with respect to FooGetDefaultResponse
*/
public static FooGetDefaultResponse fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, FooGetDefaultResponse.class);
}
/**
* Convert an instance of FooGetDefaultResponse to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of FooGetDefaultResponse to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -132,12 +132,12 @@ public class FormatTest {
return this;
}
/**
/**
* Get integer
* minimum: 10
* maximum: 100
* @return integer
**/
*/
@javax.annotation.Nullable
public Integer getInteger() {
return integer;
@@ -153,12 +153,12 @@ public class FormatTest {
return this;
}
/**
/**
* Get int32
* minimum: 20
* maximum: 200
* @return int32
**/
*/
@javax.annotation.Nullable
public Integer getInt32() {
return int32;
@@ -174,10 +174,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get int64
* @return int64
**/
*/
@javax.annotation.Nullable
public Long getInt64() {
return int64;
@@ -193,12 +193,12 @@ public class FormatTest {
return this;
}
/**
/**
* Get number
* minimum: 32.1
* maximum: 543.2
* @return number
**/
*/
@javax.annotation.Nonnull
public BigDecimal getNumber() {
return number;
@@ -214,12 +214,12 @@ public class FormatTest {
return this;
}
/**
/**
* Get _float
* minimum: 54.3
* maximum: 987.6
* @return _float
**/
*/
@javax.annotation.Nullable
public Float getFloat() {
return _float;
@@ -235,12 +235,12 @@ public class FormatTest {
return this;
}
/**
/**
* Get _double
* minimum: 67.8
* maximum: 123.4
* @return _double
**/
*/
@javax.annotation.Nullable
public Double getDouble() {
return _double;
@@ -256,10 +256,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get decimal
* @return decimal
**/
*/
@javax.annotation.Nullable
public BigDecimal getDecimal() {
return decimal;
@@ -275,10 +275,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get string
* @return string
**/
*/
@javax.annotation.Nullable
public String getString() {
return string;
@@ -294,10 +294,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get _byte
* @return _byte
**/
*/
@javax.annotation.Nonnull
public byte[] getByte() {
return _byte;
@@ -313,10 +313,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get binary
* @return binary
**/
*/
@javax.annotation.Nullable
public File getBinary() {
return binary;
@@ -332,10 +332,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get date
* @return date
**/
*/
@javax.annotation.Nonnull
public LocalDate getDate() {
return date;
@@ -351,10 +351,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get dateTime
* @return dateTime
**/
*/
@javax.annotation.Nullable
public OffsetDateTime getDateTime() {
return dateTime;
@@ -370,10 +370,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get uuid
* @return uuid
**/
*/
@javax.annotation.Nullable
public UUID getUuid() {
return uuid;
@@ -389,10 +389,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get uuidWithDefault
* @return uuidWithDefault
**/
*/
@javax.annotation.Nullable
public UUID getUuidWithDefault() {
return uuidWithDefault;
@@ -408,10 +408,10 @@ public class FormatTest {
return this;
}
/**
/**
* Get password
* @return password
**/
*/
@javax.annotation.Nonnull
public String getPassword() {
return password;
@@ -427,10 +427,10 @@ public class FormatTest {
return this;
}
/**
/**
* A string that is a 10 digit number. Can have leading zeros.
* @return patternWithDigits
**/
*/
@javax.annotation.Nullable
public String getPatternWithDigits() {
return patternWithDigits;
@@ -446,10 +446,10 @@ public class FormatTest {
return this;
}
/**
/**
* A string starting with &#39;image_&#39; (case insensitive) and one to three digits following i.e. Image_01.
* @return patternWithDigitsAndDelimiter
**/
*/
@javax.annotation.Nullable
public String getPatternWithDigitsAndDelimiter() {
return patternWithDigitsAndDelimiter;
@@ -609,12 +609,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
@@ -721,22 +721,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

@@ -68,10 +68,10 @@ public class FreeFormObjectTestClass {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nullable
public String getName() {
return name;
@@ -87,10 +87,10 @@ public class FreeFormObjectTestClass {
return this;
}
/**
/**
* Get properties
* @return properties
**/
*/
@javax.annotation.Nullable
public FreeFormObjectTestClassProperties getProperties() {
return properties;
@@ -201,12 +201,12 @@ public class FreeFormObjectTestClass {
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 FreeFormObjectTestClass
*/
/**
* 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 FreeFormObjectTestClass
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!FreeFormObjectTestClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -295,22 +295,22 @@ public class FreeFormObjectTestClass {
}
}
/**
* Create an instance of FreeFormObjectTestClass given an JSON string
*
* @param jsonString JSON string
* @return An instance of FreeFormObjectTestClass
* @throws IOException if the JSON string is invalid with respect to FreeFormObjectTestClass
*/
/**
* Create an instance of FreeFormObjectTestClass given an JSON string
*
* @param jsonString JSON string
* @return An instance of FreeFormObjectTestClass
* @throws IOException if the JSON string is invalid with respect to FreeFormObjectTestClass
*/
public static FreeFormObjectTestClass fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, FreeFormObjectTestClass.class);
}
/**
* Convert an instance of FreeFormObjectTestClass to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of FreeFormObjectTestClass to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -64,10 +64,10 @@ public class GrandparentAnimal {
return this;
}
/**
/**
* Get petType
* @return petType
**/
*/
@javax.annotation.Nonnull
public String getPetType() {
return petType;
@@ -176,12 +176,12 @@ public class GrandparentAnimal {
openapiRequiredFields.add("pet_type");
}
/**
* 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 GrandparentAnimal
*/
/**
* 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 GrandparentAnimal
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!GrandparentAnimal.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -200,22 +200,22 @@ public class GrandparentAnimal {
}
/**
* Create an instance of GrandparentAnimal given an JSON string
*
* @param jsonString JSON string
* @return An instance of GrandparentAnimal
* @throws IOException if the JSON string is invalid with respect to GrandparentAnimal
*/
/**
* Create an instance of GrandparentAnimal given an JSON string
*
* @param jsonString JSON string
* @return An instance of GrandparentAnimal
* @throws IOException if the JSON string is invalid with respect to GrandparentAnimal
*/
public static GrandparentAnimal fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, GrandparentAnimal.class);
}
/**
* Convert an instance of GrandparentAnimal to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of GrandparentAnimal 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;
@@ -193,12 +193,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
@@ -286,22 +286,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

@@ -64,10 +64,10 @@ public class HealthCheckResult {
return this;
}
/**
/**
* Get nullableMessage
* @return nullableMessage
**/
*/
@javax.annotation.Nullable
public String getNullableMessage() {
return nullableMessage;
@@ -186,12 +186,12 @@ public class HealthCheckResult {
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 HealthCheckResult
*/
/**
* 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 HealthCheckResult
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!HealthCheckResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -276,22 +276,22 @@ public class HealthCheckResult {
}
}
/**
* Create an instance of HealthCheckResult given an JSON string
*
* @param jsonString JSON string
* @return An instance of HealthCheckResult
* @throws IOException if the JSON string is invalid with respect to HealthCheckResult
*/
/**
* Create an instance of HealthCheckResult given an JSON string
*
* @param jsonString JSON string
* @return An instance of HealthCheckResult
* @throws IOException if the JSON string is invalid with respect to HealthCheckResult
*/
public static HealthCheckResult fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, HealthCheckResult.class);
}
/**
* Convert an instance of HealthCheckResult to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of HealthCheckResult to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -67,10 +67,10 @@ public class IsoscelesTriangle {
return this;
}
/**
/**
* Get shapeType
* @return shapeType
**/
*/
@javax.annotation.Nonnull
public String getShapeType() {
return shapeType;
@@ -86,10 +86,10 @@ public class IsoscelesTriangle {
return this;
}
/**
/**
* Get triangleType
* @return triangleType
**/
*/
@javax.annotation.Nonnull
public String getTriangleType() {
return triangleType;
@@ -156,12 +156,12 @@ public class IsoscelesTriangle {
openapiRequiredFields.add("triangleType");
}
/**
* 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 IsoscelesTriangle
*/
/**
* 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 IsoscelesTriangle
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!IsoscelesTriangle.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -221,22 +221,22 @@ public class IsoscelesTriangle {
}
}
/**
* Create an instance of IsoscelesTriangle given an JSON string
*
* @param jsonString JSON string
* @return An instance of IsoscelesTriangle
* @throws IOException if the JSON string is invalid with respect to IsoscelesTriangle
*/
/**
* Create an instance of IsoscelesTriangle given an JSON string
*
* @param jsonString JSON string
* @return An instance of IsoscelesTriangle
* @throws IOException if the JSON string is invalid with respect to IsoscelesTriangle
*/
public static IsoscelesTriangle fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, IsoscelesTriangle.class);
}
/**
* Convert an instance of IsoscelesTriangle to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of IsoscelesTriangle 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;
@@ -338,12 +338,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
@@ -425,22 +425,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;
@@ -239,12 +239,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
@@ -329,22 +329,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;
@@ -200,12 +200,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
@@ -290,22 +290,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;
@@ -226,12 +226,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
@@ -319,22 +319,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;
@@ -174,12 +174,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
@@ -264,22 +264,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;
@@ -174,12 +174,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
@@ -264,22 +264,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;
@@ -174,12 +174,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
@@ -261,22 +261,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

@@ -69,10 +69,10 @@ public class ModelWithOneOfAnyOfProperties {
return this;
}
/**
/**
* Get oneofProp
* @return oneofProp
**/
*/
@javax.annotation.Nullable
public ArrayOneOf getOneofProp() {
return oneofProp;
@@ -88,10 +88,10 @@ public class ModelWithOneOfAnyOfProperties {
return this;
}
/**
/**
* Get anyofProp
* @return anyofProp
**/
*/
@javax.annotation.Nullable
public ArrayAnyOf getAnyofProp() {
return anyofProp;
@@ -202,12 +202,12 @@ public class ModelWithOneOfAnyOfProperties {
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 ModelWithOneOfAnyOfProperties
*/
/**
* 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 ModelWithOneOfAnyOfProperties
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ModelWithOneOfAnyOfProperties.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -297,22 +297,22 @@ public class ModelWithOneOfAnyOfProperties {
}
}
/**
* Create an instance of ModelWithOneOfAnyOfProperties given an JSON string
*
* @param jsonString JSON string
* @return An instance of ModelWithOneOfAnyOfProperties
* @throws IOException if the JSON string is invalid with respect to ModelWithOneOfAnyOfProperties
*/
/**
* Create an instance of ModelWithOneOfAnyOfProperties given an JSON string
*
* @param jsonString JSON string
* @return An instance of ModelWithOneOfAnyOfProperties
* @throws IOException if the JSON string is invalid with respect to ModelWithOneOfAnyOfProperties
*/
public static ModelWithOneOfAnyOfProperties fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ModelWithOneOfAnyOfProperties.class);
}
/**
* Convert an instance of ModelWithOneOfAnyOfProperties to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of ModelWithOneOfAnyOfProperties 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;
@@ -246,12 +246,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
@@ -343,22 +343,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

@@ -146,10 +146,10 @@ public class NewPet {
return this;
}
/**
/**
* Get id
* @return id
**/
*/
@javax.annotation.Nullable
public Long getId() {
return id;
@@ -165,10 +165,10 @@ public class NewPet {
return this;
}
/**
/**
* Get categoryInlineAllof
* @return categoryInlineAllof
**/
*/
@javax.annotation.Nullable
public NewPetCategoryInlineAllof getCategoryInlineAllof() {
return categoryInlineAllof;
@@ -184,10 +184,10 @@ public class NewPet {
return this;
}
/**
/**
* Get categoryAllOfRef
* @return categoryAllOfRef
**/
*/
@javax.annotation.Nullable
public Category getCategoryAllOfRef() {
return categoryAllOfRef;
@@ -203,10 +203,10 @@ public class NewPet {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nonnull
public String getName() {
return name;
@@ -230,10 +230,10 @@ public class NewPet {
return this;
}
/**
/**
* Get photoUrls
* @return photoUrls
**/
*/
@javax.annotation.Nonnull
public List<String> getPhotoUrls() {
return photoUrls;
@@ -257,10 +257,10 @@ public class NewPet {
return this;
}
/**
/**
* Get tags
* @return tags
**/
*/
@javax.annotation.Nullable
public List<Tag> getTags() {
return tags;
@@ -276,10 +276,10 @@ public class NewPet {
return this;
}
/**
/**
* pet status in the store
* @return status
**/
*/
@javax.annotation.Nullable
public StatusEnum getStatus() {
return status;
@@ -407,12 +407,12 @@ public class NewPet {
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 NewPet
*/
/**
* 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 NewPet
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!NewPet.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -539,22 +539,22 @@ public class NewPet {
}
}
/**
* Create an instance of NewPet given an JSON string
*
* @param jsonString JSON string
* @return An instance of NewPet
* @throws IOException if the JSON string is invalid with respect to NewPet
*/
/**
* Create an instance of NewPet given an JSON string
*
* @param jsonString JSON string
* @return An instance of NewPet
* @throws IOException if the JSON string is invalid with respect to NewPet
*/
public static NewPet fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, NewPet.class);
}
/**
* Convert an instance of NewPet to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of NewPet to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -72,10 +72,10 @@ public class NewPetCategoryInlineAllof {
return this;
}
/**
/**
* Get id
* @return id
**/
*/
@javax.annotation.Nullable
public Long getId() {
return id;
@@ -91,10 +91,10 @@ public class NewPetCategoryInlineAllof {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nonnull
public String getName() {
return name;
@@ -110,10 +110,10 @@ public class NewPetCategoryInlineAllof {
return this;
}
/**
/**
* Get categoryTag
* @return categoryTag
**/
*/
@javax.annotation.Nullable
public NewPetCategoryInlineAllofAllOfCategoryTag getCategoryTag() {
return categoryTag;
@@ -228,12 +228,12 @@ public class NewPetCategoryInlineAllof {
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 NewPetCategoryInlineAllof
*/
/**
* 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 NewPetCategoryInlineAllof
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!NewPetCategoryInlineAllof.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -329,22 +329,22 @@ public class NewPetCategoryInlineAllof {
}
}
/**
* Create an instance of NewPetCategoryInlineAllof given an JSON string
*
* @param jsonString JSON string
* @return An instance of NewPetCategoryInlineAllof
* @throws IOException if the JSON string is invalid with respect to NewPetCategoryInlineAllof
*/
/**
* Create an instance of NewPetCategoryInlineAllof given an JSON string
*
* @param jsonString JSON string
* @return An instance of NewPetCategoryInlineAllof
* @throws IOException if the JSON string is invalid with respect to NewPetCategoryInlineAllof
*/
public static NewPetCategoryInlineAllof fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, NewPetCategoryInlineAllof.class);
}
/**
* Convert an instance of NewPetCategoryInlineAllof to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of NewPetCategoryInlineAllof to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -67,10 +67,10 @@ public class NewPetCategoryInlineAllofAllOfCategoryTag {
return this;
}
/**
/**
* Get id
* @return id
**/
*/
@javax.annotation.Nullable
public Long getId() {
return id;
@@ -86,10 +86,10 @@ public class NewPetCategoryInlineAllofAllOfCategoryTag {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nullable
public String getName() {
return name;
@@ -200,12 +200,12 @@ public class NewPetCategoryInlineAllofAllOfCategoryTag {
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 NewPetCategoryInlineAllofAllOfCategoryTag
*/
/**
* 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 NewPetCategoryInlineAllofAllOfCategoryTag
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!NewPetCategoryInlineAllofAllOfCategoryTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -290,22 +290,22 @@ public class NewPetCategoryInlineAllofAllOfCategoryTag {
}
}
/**
* Create an instance of NewPetCategoryInlineAllofAllOfCategoryTag given an JSON string
*
* @param jsonString JSON string
* @return An instance of NewPetCategoryInlineAllofAllOfCategoryTag
* @throws IOException if the JSON string is invalid with respect to NewPetCategoryInlineAllofAllOfCategoryTag
*/
/**
* Create an instance of NewPetCategoryInlineAllofAllOfCategoryTag given an JSON string
*
* @param jsonString JSON string
* @return An instance of NewPetCategoryInlineAllofAllOfCategoryTag
* @throws IOException if the JSON string is invalid with respect to NewPetCategoryInlineAllofAllOfCategoryTag
*/
public static NewPetCategoryInlineAllofAllOfCategoryTag fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, NewPetCategoryInlineAllofAllOfCategoryTag.class);
}
/**
* Convert an instance of NewPetCategoryInlineAllofAllOfCategoryTag to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of NewPetCategoryInlineAllofAllOfCategoryTag to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -115,10 +115,10 @@ public class NullableClass {
return this;
}
/**
/**
* Get integerProp
* @return integerProp
**/
*/
@javax.annotation.Nullable
public Integer getIntegerProp() {
return integerProp;
@@ -134,10 +134,10 @@ public class NullableClass {
return this;
}
/**
/**
* Get numberProp
* @return numberProp
**/
*/
@javax.annotation.Nullable
public BigDecimal getNumberProp() {
return numberProp;
@@ -153,10 +153,10 @@ public class NullableClass {
return this;
}
/**
/**
* Get booleanProp
* @return booleanProp
**/
*/
@javax.annotation.Nullable
public Boolean getBooleanProp() {
return booleanProp;
@@ -172,10 +172,10 @@ public class NullableClass {
return this;
}
/**
/**
* Get stringProp
* @return stringProp
**/
*/
@javax.annotation.Nullable
public String getStringProp() {
return stringProp;
@@ -191,10 +191,10 @@ public class NullableClass {
return this;
}
/**
/**
* Get dateProp
* @return dateProp
**/
*/
@javax.annotation.Nullable
public LocalDate getDateProp() {
return dateProp;
@@ -210,10 +210,10 @@ public class NullableClass {
return this;
}
/**
/**
* Get datetimeProp
* @return datetimeProp
**/
*/
@javax.annotation.Nullable
public OffsetDateTime getDatetimeProp() {
return datetimeProp;
@@ -237,10 +237,10 @@ public class NullableClass {
return this;
}
/**
/**
* Get arrayNullableProp
* @return arrayNullableProp
**/
*/
@javax.annotation.Nullable
public List<Object> getArrayNullableProp() {
return arrayNullableProp;
@@ -264,10 +264,10 @@ public class NullableClass {
return this;
}
/**
/**
* Get arrayAndItemsNullableProp
* @return arrayAndItemsNullableProp
**/
*/
@javax.annotation.Nullable
public List<Object> getArrayAndItemsNullableProp() {
return arrayAndItemsNullableProp;
@@ -291,10 +291,10 @@ public class NullableClass {
return this;
}
/**
/**
* Get arrayItemsNullable
* @return arrayItemsNullable
**/
*/
@javax.annotation.Nullable
public List<Object> getArrayItemsNullable() {
return arrayItemsNullable;
@@ -318,10 +318,10 @@ public class NullableClass {
return this;
}
/**
/**
* Get objectNullableProp
* @return objectNullableProp
**/
*/
@javax.annotation.Nullable
public Map<String, Object> getObjectNullableProp() {
return objectNullableProp;
@@ -345,10 +345,10 @@ public class NullableClass {
return this;
}
/**
/**
* Get objectAndItemsNullableProp
* @return objectAndItemsNullableProp
**/
*/
@javax.annotation.Nullable
public Map<String, Object> getObjectAndItemsNullableProp() {
return objectAndItemsNullableProp;
@@ -372,10 +372,10 @@ public class NullableClass {
return this;
}
/**
/**
* Get objectItemsNullable
* @return objectItemsNullable
**/
*/
@javax.annotation.Nullable
public Map<String, Object> getObjectItemsNullable() {
return objectItemsNullable;
@@ -527,12 +527,12 @@ public class NullableClass {
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 NullableClass
*/
/**
* 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 NullableClass
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!NullableClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -629,22 +629,22 @@ public class NullableClass {
}
}
/**
* Create an instance of NullableClass given an JSON string
*
* @param jsonString JSON string
* @return An instance of NullableClass
* @throws IOException if the JSON string is invalid with respect to NullableClass
*/
/**
* Create an instance of NullableClass given an JSON string
*
* @param jsonString JSON string
* @return An instance of NullableClass
* @throws IOException if the JSON string is invalid with respect to NullableClass
*/
public static NullableClass fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, NullableClass.class);
}
/**
* Convert an instance of NullableClass to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of NullableClass 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;
@@ -175,12 +175,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
@@ -262,22 +262,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

@@ -82,10 +82,10 @@ public class ObjectWithDeprecatedFields {
return this;
}
/**
/**
* Get uuid
* @return uuid
**/
*/
@javax.annotation.Nullable
public String getUuid() {
return uuid;
@@ -102,11 +102,11 @@ public class ObjectWithDeprecatedFields {
return this;
}
/**
/**
* Get id
* @return id
* @deprecated
**/
*/
@Deprecated
@javax.annotation.Nullable
public BigDecimal getId() {
@@ -125,11 +125,11 @@ public class ObjectWithDeprecatedFields {
return this;
}
/**
/**
* Get deprecatedRef
* @return deprecatedRef
* @deprecated
**/
*/
@Deprecated
@javax.annotation.Nullable
public DeprecatedObject getDeprecatedRef() {
@@ -156,11 +156,11 @@ public class ObjectWithDeprecatedFields {
return this;
}
/**
/**
* Get bars
* @return bars
* @deprecated
**/
*/
@Deprecated
@javax.annotation.Nullable
public List<String> getBars() {
@@ -279,12 +279,12 @@ public class ObjectWithDeprecatedFields {
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 ObjectWithDeprecatedFields
*/
/**
* 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 ObjectWithDeprecatedFields
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ObjectWithDeprecatedFields.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -377,22 +377,22 @@ public class ObjectWithDeprecatedFields {
}
}
/**
* Create an instance of ObjectWithDeprecatedFields given an JSON string
*
* @param jsonString JSON string
* @return An instance of ObjectWithDeprecatedFields
* @throws IOException if the JSON string is invalid with respect to ObjectWithDeprecatedFields
*/
/**
* Create an instance of ObjectWithDeprecatedFields given an JSON string
*
* @param jsonString JSON string
* @return An instance of ObjectWithDeprecatedFields
* @throws IOException if the JSON string is invalid with respect to ObjectWithDeprecatedFields
*/
public static ObjectWithDeprecatedFields fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ObjectWithDeprecatedFields.class);
}
/**
* Convert an instance of ObjectWithDeprecatedFields to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of ObjectWithDeprecatedFields 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;
@@ -359,12 +359,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
@@ -453,22 +453,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;
@@ -227,12 +227,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
@@ -317,22 +317,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

@@ -152,12 +152,12 @@ public class ParentPet extends GrandparentAnimal {
openapiRequiredFields.add("pet_type");
}
/**
* 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 ParentPet
*/
/**
* 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 ParentPet
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ParentPet.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -245,22 +245,22 @@ public class ParentPet extends GrandparentAnimal {
}
}
/**
* Create an instance of ParentPet given an JSON string
*
* @param jsonString JSON string
* @return An instance of ParentPet
* @throws IOException if the JSON string is invalid with respect to ParentPet
*/
/**
* Create an instance of ParentPet given an JSON string
*
* @param jsonString JSON string
* @return An instance of ParentPet
* @throws IOException if the JSON string is invalid with respect to ParentPet
*/
public static ParentPet fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ParentPet.class);
}
/**
* Convert an instance of ParentPet to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of ParentPet to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -141,10 +141,10 @@ public class Pet {
return this;
}
/**
/**
* Get id
* @return id
**/
*/
@javax.annotation.Nullable
public Long getId() {
return id;
@@ -160,10 +160,10 @@ public class Pet {
return this;
}
/**
/**
* Get category
* @return category
**/
*/
@javax.annotation.Nullable
public Category getCategory() {
return category;
@@ -179,10 +179,10 @@ public class Pet {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nonnull
public String getName() {
return name;
@@ -206,10 +206,10 @@ public class Pet {
return this;
}
/**
/**
* Get photoUrls
* @return photoUrls
**/
*/
@javax.annotation.Nonnull
public List<String> getPhotoUrls() {
return photoUrls;
@@ -233,10 +233,10 @@ public class Pet {
return this;
}
/**
/**
* Get tags
* @return tags
**/
*/
@javax.annotation.Nullable
public List<Tag> getTags() {
return tags;
@@ -252,10 +252,10 @@ public class Pet {
return this;
}
/**
/**
* pet status in the store
* @return status
**/
*/
@javax.annotation.Nullable
public StatusEnum getStatus() {
return status;
@@ -380,12 +380,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
@@ -508,22 +508,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

@@ -141,10 +141,10 @@ public class PetComposition {
return this;
}
/**
/**
* Get id
* @return id
**/
*/
@javax.annotation.Nullable
public Long getId() {
return id;
@@ -160,10 +160,10 @@ public class PetComposition {
return this;
}
/**
/**
* Get category
* @return category
**/
*/
@javax.annotation.Nullable
public Category getCategory() {
return category;
@@ -179,10 +179,10 @@ public class PetComposition {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nonnull
public String getName() {
return name;
@@ -206,10 +206,10 @@ public class PetComposition {
return this;
}
/**
/**
* Get photoUrls
* @return photoUrls
**/
*/
@javax.annotation.Nonnull
public List<String> getPhotoUrls() {
return photoUrls;
@@ -233,10 +233,10 @@ public class PetComposition {
return this;
}
/**
/**
* Get tags
* @return tags
**/
*/
@javax.annotation.Nullable
public List<Tag> getTags() {
return tags;
@@ -252,10 +252,10 @@ public class PetComposition {
return this;
}
/**
/**
* pet status in the store
* @return status
**/
*/
@javax.annotation.Nullable
public StatusEnum getStatus() {
return status;
@@ -380,12 +380,12 @@ public class PetComposition {
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 PetComposition
*/
/**
* 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 PetComposition
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!PetComposition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -508,22 +508,22 @@ public class PetComposition {
}
}
/**
* Create an instance of PetComposition given an JSON string
*
* @param jsonString JSON string
* @return An instance of PetComposition
* @throws IOException if the JSON string is invalid with respect to PetComposition
*/
/**
* Create an instance of PetComposition given an JSON string
*
* @param jsonString JSON string
* @return An instance of PetComposition
* @throws IOException if the JSON string is invalid with respect to PetComposition
*/
public static PetComposition fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, PetComposition.class);
}
/**
* Convert an instance of PetComposition to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of PetComposition to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -141,10 +141,10 @@ public class PetRef {
return this;
}
/**
/**
* Get id
* @return id
**/
*/
@javax.annotation.Nullable
public Long getId() {
return id;
@@ -160,10 +160,10 @@ public class PetRef {
return this;
}
/**
/**
* Get category
* @return category
**/
*/
@javax.annotation.Nullable
public Category getCategory() {
return category;
@@ -179,10 +179,10 @@ public class PetRef {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nonnull
public String getName() {
return name;
@@ -206,10 +206,10 @@ public class PetRef {
return this;
}
/**
/**
* Get photoUrls
* @return photoUrls
**/
*/
@javax.annotation.Nonnull
public List<String> getPhotoUrls() {
return photoUrls;
@@ -233,10 +233,10 @@ public class PetRef {
return this;
}
/**
/**
* Get tags
* @return tags
**/
*/
@javax.annotation.Nullable
public List<Tag> getTags() {
return tags;
@@ -252,10 +252,10 @@ public class PetRef {
return this;
}
/**
/**
* pet status in the store
* @return status
**/
*/
@javax.annotation.Nullable
public StatusEnum getStatus() {
return status;
@@ -380,12 +380,12 @@ public class PetRef {
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 PetRef
*/
/**
* 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 PetRef
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!PetRef.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -508,22 +508,22 @@ public class PetRef {
}
}
/**
* Create an instance of PetRef given an JSON string
*
* @param jsonString JSON string
* @return An instance of PetRef
* @throws IOException if the JSON string is invalid with respect to PetRef
*/
/**
* Create an instance of PetRef given an JSON string
*
* @param jsonString JSON string
* @return An instance of PetRef
* @throws IOException if the JSON string is invalid with respect to PetRef
*/
public static PetRef fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, PetRef.class);
}
/**
* Convert an instance of PetRef to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of PetRef to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -141,10 +141,10 @@ public class PetUsingAllOf {
return this;
}
/**
/**
* Get id
* @return id
**/
*/
@javax.annotation.Nullable
public Long getId() {
return id;
@@ -160,10 +160,10 @@ public class PetUsingAllOf {
return this;
}
/**
/**
* multi line description 2nd line last line
* @return category
**/
*/
@javax.annotation.Nullable
public Category getCategory() {
return category;
@@ -179,10 +179,10 @@ public class PetUsingAllOf {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nonnull
public String getName() {
return name;
@@ -206,10 +206,10 @@ public class PetUsingAllOf {
return this;
}
/**
/**
* Get photoUrls
* @return photoUrls
**/
*/
@javax.annotation.Nonnull
public List<String> getPhotoUrls() {
return photoUrls;
@@ -233,10 +233,10 @@ public class PetUsingAllOf {
return this;
}
/**
/**
* Get tags
* @return tags
**/
*/
@javax.annotation.Nullable
public List<Tag> getTags() {
return tags;
@@ -252,10 +252,10 @@ public class PetUsingAllOf {
return this;
}
/**
/**
* pet status in the store
* @return status
**/
*/
@javax.annotation.Nullable
public StatusEnum getStatus() {
return status;
@@ -380,12 +380,12 @@ public class PetUsingAllOf {
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 PetUsingAllOf
*/
/**
* 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 PetUsingAllOf
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!PetUsingAllOf.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -508,22 +508,22 @@ public class PetUsingAllOf {
}
}
/**
* Create an instance of PetUsingAllOf given an JSON string
*
* @param jsonString JSON string
* @return An instance of PetUsingAllOf
* @throws IOException if the JSON string is invalid with respect to PetUsingAllOf
*/
/**
* Create an instance of PetUsingAllOf given an JSON string
*
* @param jsonString JSON string
* @return An instance of PetUsingAllOf
* @throws IOException if the JSON string is invalid with respect to PetUsingAllOf
*/
public static PetUsingAllOf fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, PetUsingAllOf.class);
}
/**
* Convert an instance of PetUsingAllOf to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of PetUsingAllOf to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -141,10 +141,10 @@ public class PetWithRequiredTags {
return this;
}
/**
/**
* Get id
* @return id
**/
*/
@javax.annotation.Nullable
public Long getId() {
return id;
@@ -160,10 +160,10 @@ public class PetWithRequiredTags {
return this;
}
/**
/**
* Get category
* @return category
**/
*/
@javax.annotation.Nullable
public Category getCategory() {
return category;
@@ -179,10 +179,10 @@ public class PetWithRequiredTags {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nonnull
public String getName() {
return name;
@@ -206,10 +206,10 @@ public class PetWithRequiredTags {
return this;
}
/**
/**
* Get photoUrls
* @return photoUrls
**/
*/
@javax.annotation.Nonnull
public List<String> getPhotoUrls() {
return photoUrls;
@@ -233,10 +233,10 @@ public class PetWithRequiredTags {
return this;
}
/**
/**
* Get tags
* @return tags
**/
*/
@javax.annotation.Nonnull
public List<Tag> getTags() {
return tags;
@@ -252,10 +252,10 @@ public class PetWithRequiredTags {
return this;
}
/**
/**
* pet status in the store
* @return status
**/
*/
@javax.annotation.Nullable
public StatusEnum getStatus() {
return status;
@@ -381,12 +381,12 @@ public class PetWithRequiredTags {
openapiRequiredFields.add("tags");
}
/**
* 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 PetWithRequiredTags
*/
/**
* 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 PetWithRequiredTags
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!PetWithRequiredTags.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -505,22 +505,22 @@ public class PetWithRequiredTags {
}
}
/**
* Create an instance of PetWithRequiredTags given an JSON string
*
* @param jsonString JSON string
* @return An instance of PetWithRequiredTags
* @throws IOException if the JSON string is invalid with respect to PetWithRequiredTags
*/
/**
* Create an instance of PetWithRequiredTags given an JSON string
*
* @param jsonString JSON string
* @return An instance of PetWithRequiredTags
* @throws IOException if the JSON string is invalid with respect to PetWithRequiredTags
*/
public static PetWithRequiredTags fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, PetWithRequiredTags.class);
}
/**
* Convert an instance of PetWithRequiredTags to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of PetWithRequiredTags to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -71,10 +71,10 @@ public class PropertyNameCollision {
return this;
}
/**
/**
* Get underscoreType
* @return underscoreType
**/
*/
@javax.annotation.Nullable
public String getUnderscoreType() {
return underscoreType;
@@ -90,10 +90,10 @@ public class PropertyNameCollision {
return this;
}
/**
/**
* Get type
* @return type
**/
*/
@javax.annotation.Nullable
public String getType() {
return type;
@@ -109,10 +109,10 @@ public class PropertyNameCollision {
return this;
}
/**
/**
* Get typeWithUnderscore
* @return typeWithUnderscore
**/
*/
@javax.annotation.Nullable
public String getTypeWithUnderscore() {
return typeWithUnderscore;
@@ -226,12 +226,12 @@ public class PropertyNameCollision {
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 PropertyNameCollision
*/
/**
* 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 PropertyNameCollision
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!PropertyNameCollision.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -322,22 +322,22 @@ public class PropertyNameCollision {
}
}
/**
* Create an instance of PropertyNameCollision given an JSON string
*
* @param jsonString JSON string
* @return An instance of PropertyNameCollision
* @throws IOException if the JSON string is invalid with respect to PropertyNameCollision
*/
/**
* Create an instance of PropertyNameCollision given an JSON string
*
* @param jsonString JSON string
* @return An instance of PropertyNameCollision
* @throws IOException if the JSON string is invalid with respect to PropertyNameCollision
*/
public static PropertyNameCollision fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, PropertyNameCollision.class);
}
/**
* Convert an instance of PropertyNameCollision to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of PropertyNameCollision to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -63,10 +63,10 @@ public class QuadrilateralInterface {
return this;
}
/**
/**
* Get quadrilateralType
* @return quadrilateralType
**/
*/
@javax.annotation.Nonnull
public String getQuadrilateralType() {
return quadrilateralType;
@@ -175,12 +175,12 @@ public class QuadrilateralInterface {
openapiRequiredFields.add("quadrilateralType");
}
/**
* 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 QuadrilateralInterface
*/
/**
* 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 QuadrilateralInterface
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!QuadrilateralInterface.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -272,22 +272,22 @@ public class QuadrilateralInterface {
}
}
/**
* Create an instance of QuadrilateralInterface given an JSON string
*
* @param jsonString JSON string
* @return An instance of QuadrilateralInterface
* @throws IOException if the JSON string is invalid with respect to QuadrilateralInterface
*/
/**
* Create an instance of QuadrilateralInterface given an JSON string
*
* @param jsonString JSON string
* @return An instance of QuadrilateralInterface
* @throws IOException if the JSON string is invalid with respect to QuadrilateralInterface
*/
public static QuadrilateralInterface fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, QuadrilateralInterface.class);
}
/**
* Convert an instance of QuadrilateralInterface to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of QuadrilateralInterface 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;
@@ -199,12 +199,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
@@ -292,22 +292,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

@@ -67,10 +67,10 @@ public class ScaleneTriangle {
return this;
}
/**
/**
* Get shapeType
* @return shapeType
**/
*/
@javax.annotation.Nonnull
public String getShapeType() {
return shapeType;
@@ -86,10 +86,10 @@ public class ScaleneTriangle {
return this;
}
/**
/**
* Get triangleType
* @return triangleType
**/
*/
@javax.annotation.Nonnull
public String getTriangleType() {
return triangleType;
@@ -202,12 +202,12 @@ public class ScaleneTriangle {
openapiRequiredFields.add("triangleType");
}
/**
* 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 ScaleneTriangle
*/
/**
* 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 ScaleneTriangle
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ScaleneTriangle.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -302,22 +302,22 @@ public class ScaleneTriangle {
}
}
/**
* Create an instance of ScaleneTriangle given an JSON string
*
* @param jsonString JSON string
* @return An instance of ScaleneTriangle
* @throws IOException if the JSON string is invalid with respect to ScaleneTriangle
*/
/**
* Create an instance of ScaleneTriangle given an JSON string
*
* @param jsonString JSON string
* @return An instance of ScaleneTriangle
* @throws IOException if the JSON string is invalid with respect to ScaleneTriangle
*/
public static ScaleneTriangle fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ScaleneTriangle.class);
}
/**
* Convert an instance of ScaleneTriangle to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of ScaleneTriangle to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -63,10 +63,10 @@ public class ShapeInterface {
return this;
}
/**
/**
* Get shapeType
* @return shapeType
**/
*/
@javax.annotation.Nonnull
public String getShapeType() {
return shapeType;
@@ -175,12 +175,12 @@ public class ShapeInterface {
openapiRequiredFields.add("shapeType");
}
/**
* 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 ShapeInterface
*/
/**
* 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 ShapeInterface
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ShapeInterface.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -272,22 +272,22 @@ public class ShapeInterface {
}
}
/**
* Create an instance of ShapeInterface given an JSON string
*
* @param jsonString JSON string
* @return An instance of ShapeInterface
* @throws IOException if the JSON string is invalid with respect to ShapeInterface
*/
/**
* Create an instance of ShapeInterface given an JSON string
*
* @param jsonString JSON string
* @return An instance of ShapeInterface
* @throws IOException if the JSON string is invalid with respect to ShapeInterface
*/
public static ShapeInterface fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ShapeInterface.class);
}
/**
* Convert an instance of ShapeInterface to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of ShapeInterface to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -67,10 +67,10 @@ public class SimpleQuadrilateral {
return this;
}
/**
/**
* Get shapeType
* @return shapeType
**/
*/
@javax.annotation.Nonnull
public String getShapeType() {
return shapeType;
@@ -86,10 +86,10 @@ public class SimpleQuadrilateral {
return this;
}
/**
/**
* Get quadrilateralType
* @return quadrilateralType
**/
*/
@javax.annotation.Nonnull
public String getQuadrilateralType() {
return quadrilateralType;
@@ -202,12 +202,12 @@ public class SimpleQuadrilateral {
openapiRequiredFields.add("quadrilateralType");
}
/**
* 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 SimpleQuadrilateral
*/
/**
* 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 SimpleQuadrilateral
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!SimpleQuadrilateral.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -302,22 +302,22 @@ public class SimpleQuadrilateral {
}
}
/**
* Create an instance of SimpleQuadrilateral given an JSON string
*
* @param jsonString JSON string
* @return An instance of SimpleQuadrilateral
* @throws IOException if the JSON string is invalid with respect to SimpleQuadrilateral
*/
/**
* Create an instance of SimpleQuadrilateral given an JSON string
*
* @param jsonString JSON string
* @return An instance of SimpleQuadrilateral
* @throws IOException if the JSON string is invalid with respect to SimpleQuadrilateral
*/
public static SimpleQuadrilateral fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, SimpleQuadrilateral.class);
}
/**
* Convert an instance of SimpleQuadrilateral to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of SimpleQuadrilateral to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -67,10 +67,10 @@ public class SpecialModelName {
return this;
}
/**
/**
* Get $specialPropertyName
* @return $specialPropertyName
**/
*/
@javax.annotation.Nullable
public Long get$SpecialPropertyName() {
return $specialPropertyName;
@@ -86,10 +86,10 @@ public class SpecialModelName {
return this;
}
/**
/**
* Get specialModelName
* @return specialModelName
**/
*/
@javax.annotation.Nullable
public String getSpecialModelName() {
return specialModelName;
@@ -200,12 +200,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
@@ -290,22 +290,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;
@@ -200,12 +200,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
@@ -290,22 +290,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

@@ -63,10 +63,10 @@ public class TestInlineFreeformAdditionalPropertiesRequest {
return this;
}
/**
/**
* Get someProperty
* @return someProperty
**/
*/
@javax.annotation.Nullable
public String getSomeProperty() {
return someProperty;
@@ -174,12 +174,12 @@ public class TestInlineFreeformAdditionalPropertiesRequest {
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 TestInlineFreeformAdditionalPropertiesRequest
*/
/**
* 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 TestInlineFreeformAdditionalPropertiesRequest
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!TestInlineFreeformAdditionalPropertiesRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -264,22 +264,22 @@ public class TestInlineFreeformAdditionalPropertiesRequest {
}
}
/**
* Create an instance of TestInlineFreeformAdditionalPropertiesRequest given an JSON string
*
* @param jsonString JSON string
* @return An instance of TestInlineFreeformAdditionalPropertiesRequest
* @throws IOException if the JSON string is invalid with respect to TestInlineFreeformAdditionalPropertiesRequest
*/
/**
* Create an instance of TestInlineFreeformAdditionalPropertiesRequest given an JSON string
*
* @param jsonString JSON string
* @return An instance of TestInlineFreeformAdditionalPropertiesRequest
* @throws IOException if the JSON string is invalid with respect to TestInlineFreeformAdditionalPropertiesRequest
*/
public static TestInlineFreeformAdditionalPropertiesRequest fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, TestInlineFreeformAdditionalPropertiesRequest.class);
}
/**
* Convert an instance of TestInlineFreeformAdditionalPropertiesRequest to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of TestInlineFreeformAdditionalPropertiesRequest to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -63,10 +63,10 @@ public class TriangleInterface {
return this;
}
/**
/**
* Get triangleType
* @return triangleType
**/
*/
@javax.annotation.Nonnull
public String getTriangleType() {
return triangleType;
@@ -175,12 +175,12 @@ public class TriangleInterface {
openapiRequiredFields.add("triangleType");
}
/**
* 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 TriangleInterface
*/
/**
* 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 TriangleInterface
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!TriangleInterface.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -272,22 +272,22 @@ public class TriangleInterface {
}
}
/**
* Create an instance of TriangleInterface given an JSON string
*
* @param jsonString JSON string
* @return An instance of TriangleInterface
* @throws IOException if the JSON string is invalid with respect to TriangleInterface
*/
/**
* Create an instance of TriangleInterface given an JSON string
*
* @param jsonString JSON string
* @return An instance of TriangleInterface
* @throws IOException if the JSON string is invalid with respect to TriangleInterface
*/
public static TriangleInterface fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, TriangleInterface.class);
}
/**
* Convert an instance of TriangleInterface to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of TriangleInterface to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -108,10 +108,10 @@ public class User {
return this;
}
/**
/**
* Get id
* @return id
**/
*/
@javax.annotation.Nullable
public Long getId() {
return id;
@@ -127,10 +127,10 @@ public class User {
return this;
}
/**
/**
* Get username
* @return username
**/
*/
@javax.annotation.Nullable
public String getUsername() {
return username;
@@ -146,10 +146,10 @@ public class User {
return this;
}
/**
/**
* Get firstName
* @return firstName
**/
*/
@javax.annotation.Nullable
public String getFirstName() {
return firstName;
@@ -165,10 +165,10 @@ public class User {
return this;
}
/**
/**
* Get lastName
* @return lastName
**/
*/
@javax.annotation.Nullable
public String getLastName() {
return lastName;
@@ -184,10 +184,10 @@ public class User {
return this;
}
/**
/**
* Get email
* @return email
**/
*/
@javax.annotation.Nullable
public String getEmail() {
return email;
@@ -203,10 +203,10 @@ public class User {
return this;
}
/**
/**
* Get password
* @return password
**/
*/
@javax.annotation.Nullable
public String getPassword() {
return password;
@@ -222,10 +222,10 @@ public class User {
return this;
}
/**
/**
* Get phone
* @return phone
**/
*/
@javax.annotation.Nullable
public String getPhone() {
return phone;
@@ -241,10 +241,10 @@ public class User {
return this;
}
/**
/**
* User Status
* @return userStatus
**/
*/
@javax.annotation.Nullable
public Integer getUserStatus() {
return userStatus;
@@ -260,10 +260,10 @@ public class User {
return this;
}
/**
/**
* test code generation for objects Value must be a map of strings to values. It cannot be the &#39;null&#39; value.
* @return objectWithNoDeclaredProps
**/
*/
@javax.annotation.Nullable
public Object getObjectWithNoDeclaredProps() {
return objectWithNoDeclaredProps;
@@ -279,10 +279,10 @@ public class User {
return this;
}
/**
/**
* test code generation for nullable objects. Value must be a map of strings to values or the &#39;null&#39; value.
* @return objectWithNoDeclaredPropsNullable
**/
*/
@javax.annotation.Nullable
public Object getObjectWithNoDeclaredPropsNullable() {
return objectWithNoDeclaredPropsNullable;
@@ -298,10 +298,10 @@ public class User {
return this;
}
/**
/**
* test code generation for any type Here the &#39;type&#39; attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389
* @return anyTypeProp
**/
*/
@javax.annotation.Nullable
public Object getAnyTypeProp() {
return anyTypeProp;
@@ -317,10 +317,10 @@ public class User {
return this;
}
/**
/**
* test code generation for any type Here the &#39;type&#39; attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The &#39;nullable&#39; attribute does not change the allowed values.
* @return anyTypePropNullable
**/
*/
@javax.annotation.Nullable
public Object getAnyTypePropNullable() {
return anyTypePropNullable;
@@ -472,12 +472,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
@@ -577,22 +577,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

@@ -68,10 +68,10 @@ public class Variable {
return this;
}
/**
/**
* Get name
* @return name
**/
*/
@javax.annotation.Nonnull
public String getName() {
return name;
@@ -87,10 +87,10 @@ public class Variable {
return this;
}
/**
/**
* Get value
* @return value
**/
*/
@javax.annotation.Nonnull
public Value getValue() {
return value;
@@ -203,12 +203,12 @@ public class Variable {
openapiRequiredFields.add("value");
}
/**
* 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 Variable
*/
/**
* 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 Variable
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Variable.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -302,22 +302,22 @@ public class Variable {
}
}
/**
* Create an instance of Variable given an JSON string
*
* @param jsonString JSON string
* @return An instance of Variable
* @throws IOException if the JSON string is invalid with respect to Variable
*/
/**
* Create an instance of Variable given an JSON string
*
* @param jsonString JSON string
* @return An instance of Variable
* @throws IOException if the JSON string is invalid with respect to Variable
*/
public static Variable fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Variable.class);
}
/**
* Convert an instance of Variable to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of Variable to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -71,10 +71,10 @@ public class Whale {
return this;
}
/**
/**
* Get hasBaleen
* @return hasBaleen
**/
*/
@javax.annotation.Nullable
public Boolean getHasBaleen() {
return hasBaleen;
@@ -90,10 +90,10 @@ public class Whale {
return this;
}
/**
/**
* Get hasTeeth
* @return hasTeeth
**/
*/
@javax.annotation.Nullable
public Boolean getHasTeeth() {
return hasTeeth;
@@ -109,10 +109,10 @@ public class Whale {
return this;
}
/**
/**
* Get className
* @return className
**/
*/
@javax.annotation.Nonnull
public String getClassName() {
return className;
@@ -227,12 +227,12 @@ public class Whale {
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 Whale
*/
/**
* 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 Whale
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Whale.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -324,22 +324,22 @@ public class Whale {
}
}
/**
* Create an instance of Whale given an JSON string
*
* @param jsonString JSON string
* @return An instance of Whale
* @throws IOException if the JSON string is invalid with respect to Whale
*/
/**
* Create an instance of Whale given an JSON string
*
* @param jsonString JSON string
* @return An instance of Whale
* @throws IOException if the JSON string is invalid with respect to Whale
*/
public static Whale fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Whale.class);
}
/**
* Convert an instance of Whale to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of Whale to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}

View File

@@ -121,10 +121,10 @@ public class Zebra {
return this;
}
/**
/**
* Get type
* @return type
**/
*/
@javax.annotation.Nullable
public TypeEnum getType() {
return type;
@@ -140,10 +140,10 @@ public class Zebra {
return this;
}
/**
/**
* Get className
* @return className
**/
*/
@javax.annotation.Nonnull
public String getClassName() {
return className;
@@ -255,12 +255,12 @@ public class Zebra {
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 Zebra
*/
/**
* 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 Zebra
*/
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Zebra.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -359,22 +359,22 @@ public class Zebra {
}
}
/**
* Create an instance of Zebra given an JSON string
*
* @param jsonString JSON string
* @return An instance of Zebra
* @throws IOException if the JSON string is invalid with respect to Zebra
*/
/**
* Create an instance of Zebra given an JSON string
*
* @param jsonString JSON string
* @return An instance of Zebra
* @throws IOException if the JSON string is invalid with respect to Zebra
*/
public static Zebra fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Zebra.class);
}
/**
* Convert an instance of Zebra to an JSON string
*
* @return JSON string
*/
/**
* Convert an instance of Zebra to an JSON string
*
* @return JSON string
*/
public String toJson() {
return JSON.getGson().toJson(this);
}