forked from loafle/openapi-generator-original
fix typo in the comments (#11729)
This commit is contained in:
parent
c3c82513fe
commit
33ec0540b2
@ -93,7 +93,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
|
||||
{{#anyOf}}
|
||||
// deserialize {{{.}}}
|
||||
try {
|
||||
// validate the JSON object to see if any excpetion is thrown
|
||||
// validate the JSON object to see if any exception is thrown
|
||||
{{.}}.validateJsonObject(jsonObject);
|
||||
log.log(Level.FINER, "Input data matches schema '{{{.}}}'");
|
||||
{{classname}} ret = new {{classname}}();
|
||||
|
@ -96,7 +96,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im
|
||||
{{#oneOf}}
|
||||
// deserialize {{{.}}}
|
||||
try {
|
||||
// validate the JSON object to see if any excpetion is thrown
|
||||
// validate the JSON object to see if any exception is thrown
|
||||
{{.}}.validateJsonObject(jsonObject);
|
||||
actualAdapter = adapter{{.}};
|
||||
match++;
|
||||
|
@ -412,7 +412,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
if (jsonObj == null) {
|
||||
if ({{classname}}.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in {{{classname}}} is not found in the empty JSON string", {{classname}}.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -303,7 +303,7 @@ public class SomeObj {
|
||||
if (jsonObj == null) {
|
||||
if (SomeObj.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in SomeObj is not found in the empty JSON string", SomeObj.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -142,7 +142,7 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
||||
if (jsonObj == null) {
|
||||
if (AdditionalPropertiesAnyType.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in AdditionalPropertiesAnyType is not found in the empty JSON string", AdditionalPropertiesAnyType.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -143,7 +143,7 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
|
||||
if (jsonObj == null) {
|
||||
if (AdditionalPropertiesArray.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in AdditionalPropertiesArray is not found in the empty JSON string", AdditionalPropertiesArray.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -142,7 +142,7 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
||||
if (jsonObj == null) {
|
||||
if (AdditionalPropertiesBoolean.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in AdditionalPropertiesBoolean is not found in the empty JSON string", AdditionalPropertiesBoolean.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -506,7 +506,7 @@ public class AdditionalPropertiesClass {
|
||||
if (jsonObj == null) {
|
||||
if (AdditionalPropertiesClass.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in AdditionalPropertiesClass is not found in the empty JSON string", AdditionalPropertiesClass.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -142,7 +142,7 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
||||
if (jsonObj == null) {
|
||||
if (AdditionalPropertiesInteger.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in AdditionalPropertiesInteger is not found in the empty JSON string", AdditionalPropertiesInteger.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -143,7 +143,7 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
||||
if (jsonObj == null) {
|
||||
if (AdditionalPropertiesNumber.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in AdditionalPropertiesNumber is not found in the empty JSON string", AdditionalPropertiesNumber.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -142,7 +142,7 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
||||
if (jsonObj == null) {
|
||||
if (AdditionalPropertiesObject.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in AdditionalPropertiesObject is not found in the empty JSON string", AdditionalPropertiesObject.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -142,7 +142,7 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
|
||||
if (jsonObj == null) {
|
||||
if (AdditionalPropertiesString.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in AdditionalPropertiesString is not found in the empty JSON string", AdditionalPropertiesString.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -173,7 +173,7 @@ public class Animal {
|
||||
if (jsonObj == null) {
|
||||
if (Animal.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Animal is not found in the empty JSON string", Animal.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -149,7 +149,7 @@ public class ArrayOfArrayOfNumberOnly {
|
||||
if (jsonObj == null) {
|
||||
if (ArrayOfArrayOfNumberOnly.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayOfArrayOfNumberOnly is not found in the empty JSON string", ArrayOfArrayOfNumberOnly.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -149,7 +149,7 @@ public class ArrayOfNumberOnly {
|
||||
if (jsonObj == null) {
|
||||
if (ArrayOfNumberOnly.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayOfNumberOnly is not found in the empty JSON string", ArrayOfNumberOnly.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -225,7 +225,7 @@ public class ArrayTest {
|
||||
if (jsonObj == null) {
|
||||
if (ArrayTest.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayTest is not found in the empty JSON string", ArrayTest.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -198,7 +198,7 @@ public class BigCat extends Cat {
|
||||
if (jsonObj == null) {
|
||||
if (BigCat.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in BigCat is not found in the empty JSON string", BigCat.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -189,7 +189,7 @@ public class BigCatAllOf {
|
||||
if (jsonObj == null) {
|
||||
if (BigCatAllOf.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in BigCatAllOf is not found in the empty JSON string", BigCatAllOf.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -288,7 +288,7 @@ public class Capitalization {
|
||||
if (jsonObj == null) {
|
||||
if (Capitalization.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Capitalization is not found in the empty JSON string", Capitalization.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -147,7 +147,7 @@ public class Cat extends Animal {
|
||||
if (jsonObj == null) {
|
||||
if (Cat.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Cat is not found in the empty JSON string", Cat.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -138,7 +138,7 @@ public class CatAllOf {
|
||||
if (jsonObj == null) {
|
||||
if (CatAllOf.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in CatAllOf is not found in the empty JSON string", CatAllOf.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -169,7 +169,7 @@ public class Category {
|
||||
if (jsonObj == null) {
|
||||
if (Category.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Category is not found in the empty JSON string", Category.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ public class ClassModel {
|
||||
if (jsonObj == null) {
|
||||
if (ClassModel.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in ClassModel is not found in the empty JSON string", ClassModel.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -138,7 +138,7 @@ public class Client {
|
||||
if (jsonObj == null) {
|
||||
if (Client.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Client is not found in the empty JSON string", Client.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -146,7 +146,7 @@ public class Dog extends Animal {
|
||||
if (jsonObj == null) {
|
||||
if (Dog.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Dog is not found in the empty JSON string", Dog.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -138,7 +138,7 @@ public class DogAllOf {
|
||||
if (jsonObj == null) {
|
||||
if (DogAllOf.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in DogAllOf is not found in the empty JSON string", DogAllOf.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -272,7 +272,7 @@ public class EnumArrays {
|
||||
if (jsonObj == null) {
|
||||
if (EnumArrays.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in EnumArrays is not found in the empty JSON string", EnumArrays.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -452,7 +452,7 @@ public class EnumTest {
|
||||
if (jsonObj == null) {
|
||||
if (EnumTest.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in EnumTest is not found in the empty JSON string", EnumTest.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -179,7 +179,7 @@ public class FileSchemaTestClass {
|
||||
if (jsonObj == null) {
|
||||
if (FileSchemaTestClass.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in FileSchemaTestClass is not found in the empty JSON string", FileSchemaTestClass.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -547,7 +547,7 @@ public class FormatTest {
|
||||
if (jsonObj == null) {
|
||||
if (FormatTest.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in FormatTest is not found in the empty JSON string", FormatTest.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -160,7 +160,7 @@ public class HasOnlyReadOnly {
|
||||
if (jsonObj == null) {
|
||||
if (HasOnlyReadOnly.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in HasOnlyReadOnly is not found in the empty JSON string", HasOnlyReadOnly.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -310,7 +310,7 @@ public class MapTest {
|
||||
if (jsonObj == null) {
|
||||
if (MapTest.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in MapTest is not found in the empty JSON string", MapTest.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -212,7 +212,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
if (jsonObj == null) {
|
||||
if (MixedPropertiesAndAdditionalPropertiesClass.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in MixedPropertiesAndAdditionalPropertiesClass is not found in the empty JSON string", MixedPropertiesAndAdditionalPropertiesClass.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -169,7 +169,7 @@ public class Model200Response {
|
||||
if (jsonObj == null) {
|
||||
if (Model200Response.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Model200Response is not found in the empty JSON string", Model200Response.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -198,7 +198,7 @@ public class ModelApiResponse {
|
||||
if (jsonObj == null) {
|
||||
if (ModelApiResponse.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in ModelApiResponse is not found in the empty JSON string", ModelApiResponse.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ public class ModelFile {
|
||||
if (jsonObj == null) {
|
||||
if (ModelFile.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in ModelFile is not found in the empty JSON string", ModelFile.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -138,7 +138,7 @@ public class ModelList {
|
||||
if (jsonObj == null) {
|
||||
if (ModelList.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in ModelList is not found in the empty JSON string", ModelList.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ public class ModelReturn {
|
||||
if (jsonObj == null) {
|
||||
if (ModelReturn.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in ModelReturn is not found in the empty JSON string", ModelReturn.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -222,7 +222,7 @@ public class Name {
|
||||
if (jsonObj == null) {
|
||||
if (Name.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Name is not found in the empty JSON string", Name.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ public class NumberOnly {
|
||||
if (jsonObj == null) {
|
||||
if (NumberOnly.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in NumberOnly is not found in the empty JSON string", NumberOnly.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -338,7 +338,7 @@ public class Order {
|
||||
if (jsonObj == null) {
|
||||
if (Order.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Order is not found in the empty JSON string", Order.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -199,7 +199,7 @@ public class OuterComposite {
|
||||
if (jsonObj == null) {
|
||||
if (OuterComposite.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in OuterComposite is not found in the empty JSON string", OuterComposite.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -358,7 +358,7 @@ public class Pet {
|
||||
if (jsonObj == null) {
|
||||
if (Pet.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Pet is not found in the empty JSON string", Pet.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -167,7 +167,7 @@ public class ReadOnlyFirst {
|
||||
if (jsonObj == null) {
|
||||
if (ReadOnlyFirst.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in ReadOnlyFirst is not found in the empty JSON string", ReadOnlyFirst.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -138,7 +138,7 @@ public class SpecialModelName {
|
||||
if (jsonObj == null) {
|
||||
if (SpecialModelName.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in SpecialModelName is not found in the empty JSON string", SpecialModelName.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -168,7 +168,7 @@ public class Tag {
|
||||
if (jsonObj == null) {
|
||||
if (Tag.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Tag is not found in the empty JSON string", Tag.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -271,7 +271,7 @@ public class TypeHolderDefault {
|
||||
if (jsonObj == null) {
|
||||
if (TypeHolderDefault.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in TypeHolderDefault is not found in the empty JSON string", TypeHolderDefault.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -302,7 +302,7 @@ public class TypeHolderExample {
|
||||
if (jsonObj == null) {
|
||||
if (TypeHolderExample.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in TypeHolderExample is not found in the empty JSON string", TypeHolderExample.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -348,7 +348,7 @@ public class User {
|
||||
if (jsonObj == null) {
|
||||
if (User.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in User is not found in the empty JSON string", User.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -1053,7 +1053,7 @@ public class XmlItem {
|
||||
if (jsonObj == null) {
|
||||
if (XmlItem.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in XmlItem is not found in the empty JSON string", XmlItem.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -168,7 +168,7 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> impleme
|
||||
if (jsonObj == null) {
|
||||
if (AdditionalPropertiesAnyType.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in AdditionalPropertiesAnyType is not found in the empty JSON string", AdditionalPropertiesAnyType.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -169,7 +169,7 @@ public class AdditionalPropertiesArray extends HashMap<String, List> implements
|
||||
if (jsonObj == null) {
|
||||
if (AdditionalPropertiesArray.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in AdditionalPropertiesArray is not found in the empty JSON string", AdditionalPropertiesArray.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -168,7 +168,7 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> implem
|
||||
if (jsonObj == null) {
|
||||
if (AdditionalPropertiesBoolean.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in AdditionalPropertiesBoolean is not found in the empty JSON string", AdditionalPropertiesBoolean.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -549,7 +549,7 @@ public class AdditionalPropertiesClass implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (AdditionalPropertiesClass.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in AdditionalPropertiesClass is not found in the empty JSON string", AdditionalPropertiesClass.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -168,7 +168,7 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> implem
|
||||
if (jsonObj == null) {
|
||||
if (AdditionalPropertiesInteger.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in AdditionalPropertiesInteger is not found in the empty JSON string", AdditionalPropertiesInteger.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -169,7 +169,7 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> impl
|
||||
if (jsonObj == null) {
|
||||
if (AdditionalPropertiesNumber.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in AdditionalPropertiesNumber is not found in the empty JSON string", AdditionalPropertiesNumber.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -168,7 +168,7 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> implements
|
||||
if (jsonObj == null) {
|
||||
if (AdditionalPropertiesObject.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in AdditionalPropertiesObject is not found in the empty JSON string", AdditionalPropertiesObject.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -168,7 +168,7 @@ public class AdditionalPropertiesString extends HashMap<String, String> implemen
|
||||
if (jsonObj == null) {
|
||||
if (AdditionalPropertiesString.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in AdditionalPropertiesString is not found in the empty JSON string", AdditionalPropertiesString.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -198,7 +198,7 @@ public class Animal implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (Animal.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Animal is not found in the empty JSON string", Animal.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ public class ArrayOfArrayOfNumberOnly implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (ArrayOfArrayOfNumberOnly.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayOfArrayOfNumberOnly is not found in the empty JSON string", ArrayOfArrayOfNumberOnly.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ public class ArrayOfNumberOnly implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (ArrayOfNumberOnly.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayOfNumberOnly is not found in the empty JSON string", ArrayOfNumberOnly.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -252,7 +252,7 @@ public class ArrayTest implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (ArrayTest.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayTest is not found in the empty JSON string", ArrayTest.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -224,7 +224,7 @@ public class BigCat extends Cat implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (BigCat.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in BigCat is not found in the empty JSON string", BigCat.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -212,7 +212,7 @@ public class BigCatAllOf implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (BigCatAllOf.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in BigCatAllOf is not found in the empty JSON string", BigCatAllOf.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -321,7 +321,7 @@ public class Capitalization implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (Capitalization.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Capitalization is not found in the empty JSON string", Capitalization.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -173,7 +173,7 @@ public class Cat extends Animal implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (Cat.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Cat is not found in the empty JSON string", Cat.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -161,7 +161,7 @@ public class CatAllOf implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (CatAllOf.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in CatAllOf is not found in the empty JSON string", CatAllOf.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -194,7 +194,7 @@ public class Category implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (Category.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Category is not found in the empty JSON string", Category.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -162,7 +162,7 @@ public class ClassModel implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (ClassModel.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in ClassModel is not found in the empty JSON string", ClassModel.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -161,7 +161,7 @@ public class Client implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (Client.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Client is not found in the empty JSON string", Client.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ public class Dog extends Animal implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (Dog.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Dog is not found in the empty JSON string", Dog.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -161,7 +161,7 @@ public class DogAllOf implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (DogAllOf.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in DogAllOf is not found in the empty JSON string", DogAllOf.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -297,7 +297,7 @@ public class EnumArrays implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (EnumArrays.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in EnumArrays is not found in the empty JSON string", EnumArrays.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -483,7 +483,7 @@ public class EnumTest implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (EnumTest.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in EnumTest is not found in the empty JSON string", EnumTest.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -204,7 +204,7 @@ public class FileSchemaTestClass implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (FileSchemaTestClass.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in FileSchemaTestClass is not found in the empty JSON string", FileSchemaTestClass.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -596,7 +596,7 @@ public class FormatTest implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (FormatTest.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in FormatTest is not found in the empty JSON string", FormatTest.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -185,7 +185,7 @@ public class HasOnlyReadOnly implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (HasOnlyReadOnly.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in HasOnlyReadOnly is not found in the empty JSON string", HasOnlyReadOnly.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -339,7 +339,7 @@ public class MapTest implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (MapTest.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in MapTest is not found in the empty JSON string", MapTest.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -239,7 +239,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (MixedPropertiesAndAdditionalPropertiesClass.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in MixedPropertiesAndAdditionalPropertiesClass is not found in the empty JSON string", MixedPropertiesAndAdditionalPropertiesClass.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -194,7 +194,7 @@ public class Model200Response implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (Model200Response.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Model200Response is not found in the empty JSON string", Model200Response.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -225,7 +225,7 @@ public class ModelApiResponse implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (ModelApiResponse.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in ModelApiResponse is not found in the empty JSON string", ModelApiResponse.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -162,7 +162,7 @@ public class ModelFile implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (ModelFile.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in ModelFile is not found in the empty JSON string", ModelFile.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -161,7 +161,7 @@ public class ModelList implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (ModelList.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in ModelList is not found in the empty JSON string", ModelList.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -162,7 +162,7 @@ public class ModelReturn implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (ModelReturn.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in ModelReturn is not found in the empty JSON string", ModelReturn.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -251,7 +251,7 @@ public class Name implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (Name.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Name is not found in the empty JSON string", Name.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -162,7 +162,7 @@ public class NumberOnly implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (NumberOnly.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in NumberOnly is not found in the empty JSON string", NumberOnly.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -371,7 +371,7 @@ public class Order implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (Order.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Order is not found in the empty JSON string", Order.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -226,7 +226,7 @@ public class OuterComposite implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (OuterComposite.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in OuterComposite is not found in the empty JSON string", OuterComposite.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -391,7 +391,7 @@ public class Pet implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (Pet.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Pet is not found in the empty JSON string", Pet.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -192,7 +192,7 @@ public class ReadOnlyFirst implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (ReadOnlyFirst.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in ReadOnlyFirst is not found in the empty JSON string", ReadOnlyFirst.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -161,7 +161,7 @@ public class SpecialModelName implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (SpecialModelName.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in SpecialModelName is not found in the empty JSON string", SpecialModelName.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -193,7 +193,7 @@ public class Tag implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (Tag.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Tag is not found in the empty JSON string", Tag.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -302,7 +302,7 @@ public class TypeHolderDefault implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (TypeHolderDefault.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in TypeHolderDefault is not found in the empty JSON string", TypeHolderDefault.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -335,7 +335,7 @@ public class TypeHolderExample implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (TypeHolderExample.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in TypeHolderExample is not found in the empty JSON string", TypeHolderExample.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -385,7 +385,7 @@ public class User implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (User.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in User is not found in the empty JSON string", User.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -1132,7 +1132,7 @@ public class XmlItem implements Parcelable {
|
||||
if (jsonObj == null) {
|
||||
if (XmlItem.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in XmlItem is not found in the empty JSON string", XmlItem.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -395,7 +395,7 @@ public class AdditionalPropertiesClass {
|
||||
if (jsonObj == null) {
|
||||
if (AdditionalPropertiesClass.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in AdditionalPropertiesClass is not found in the empty JSON string", AdditionalPropertiesClass.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ public class Animal {
|
||||
if (jsonObj == null) {
|
||||
if (Animal.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Animal is not found in the empty JSON string", Animal.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -168,7 +168,7 @@ public class Apple {
|
||||
if (jsonObj == null) {
|
||||
if (Apple.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in Apple is not found in the empty JSON string", Apple.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
@ -169,7 +169,7 @@ public class AppleReq {
|
||||
if (jsonObj == null) {
|
||||
if (AppleReq.openapiRequiredFields.isEmpty()) {
|
||||
return;
|
||||
} else { // has reuqired fields
|
||||
} else { // has required fields
|
||||
throw new IllegalArgumentException(String.format("The required field(s) %s in AppleReq is not found in the empty JSON string", AppleReq.openapiRequiredFields.toString()));
|
||||
}
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user