@@ -60,6 +60,16 @@ public class NewPet {
60
60
@ javax .annotation .Nullable
61
61
private Long id ;
62
62
63
+ public static final String SERIALIZED_NAME_CATEGORY_REF_TO_INLINE_ALLOF_STRING = "category_ref_to_inline_allof_string" ;
64
+ @ SerializedName (SERIALIZED_NAME_CATEGORY_REF_TO_INLINE_ALLOF_STRING )
65
+ @ javax .annotation .Nullable
66
+ private String categoryRefToInlineAllofString ;
67
+
68
+ public static final String SERIALIZED_NAME_CATEGORY_INLINE_ALLOF_STRING = "category_inline_allof_string" ;
69
+ @ SerializedName (SERIALIZED_NAME_CATEGORY_INLINE_ALLOF_STRING )
70
+ @ javax .annotation .Nullable
71
+ private String categoryInlineAllofString ;
72
+
63
73
public static final String SERIALIZED_NAME_CATEGORY_INLINE_ALLOF = "category_inline_allof" ;
64
74
@ SerializedName (SERIALIZED_NAME_CATEGORY_INLINE_ALLOF )
65
75
@ javax .annotation .Nullable
@@ -183,6 +193,44 @@ public void setId(@javax.annotation.Nullable Long id) {
183
193
}
184
194
185
195
196
+ public NewPet categoryRefToInlineAllofString (@ javax .annotation .Nullable String categoryRefToInlineAllofString ) {
197
+ this .categoryRefToInlineAllofString = categoryRefToInlineAllofString ;
198
+ return this ;
199
+ }
200
+
201
+ /**
202
+ * testing allOf with a ref to string
203
+ * @return categoryRefToInlineAllofString
204
+ */
205
+ @ javax .annotation .Nullable
206
+ public String getCategoryRefToInlineAllofString () {
207
+ return categoryRefToInlineAllofString ;
208
+ }
209
+
210
+ public void setCategoryRefToInlineAllofString (@ javax .annotation .Nullable String categoryRefToInlineAllofString ) {
211
+ this .categoryRefToInlineAllofString = categoryRefToInlineAllofString ;
212
+ }
213
+
214
+
215
+ public NewPet categoryInlineAllofString (@ javax .annotation .Nullable String categoryInlineAllofString ) {
216
+ this .categoryInlineAllofString = categoryInlineAllofString ;
217
+ return this ;
218
+ }
219
+
220
+ /**
221
+ * testing allOf with a ref to string
222
+ * @return categoryInlineAllofString
223
+ */
224
+ @ javax .annotation .Nullable
225
+ public String getCategoryInlineAllofString () {
226
+ return categoryInlineAllofString ;
227
+ }
228
+
229
+ public void setCategoryInlineAllofString (@ javax .annotation .Nullable String categoryInlineAllofString ) {
230
+ this .categoryInlineAllofString = categoryInlineAllofString ;
231
+ }
232
+
233
+
186
234
public NewPet categoryInlineAllof (@ javax .annotation .Nullable NewPetCategoryInlineAllof categoryInlineAllof ) {
187
235
this .categoryInlineAllof = categoryInlineAllof ;
188
236
return this ;
@@ -398,6 +446,8 @@ public boolean equals(Object o) {
398
446
}
399
447
NewPet newPet = (NewPet ) o ;
400
448
return Objects .equals (this .id , newPet .id ) &&
449
+ Objects .equals (this .categoryRefToInlineAllofString , newPet .categoryRefToInlineAllofString ) &&
450
+ Objects .equals (this .categoryInlineAllofString , newPet .categoryInlineAllofString ) &&
401
451
Objects .equals (this .categoryInlineAllof , newPet .categoryInlineAllof ) &&
402
452
Objects .equals (this .categoryAllOfRef , newPet .categoryAllOfRef ) &&
403
453
Objects .equals (this .categoryAllOfRefDescription , newPet .categoryAllOfRefDescription ) &&
@@ -411,14 +461,16 @@ public boolean equals(Object o) {
411
461
412
462
@ Override
413
463
public int hashCode () {
414
- return Objects .hash (id , categoryInlineAllof , categoryAllOfRef , categoryAllOfRefDescription , categoryAllOfRefDescriptionReadonly , name , photoUrls , tags , status , additionalProperties );
464
+ return Objects .hash (id , categoryRefToInlineAllofString , categoryInlineAllofString , categoryInlineAllof , categoryAllOfRef , categoryAllOfRefDescription , categoryAllOfRefDescriptionReadonly , name , photoUrls , tags , status , additionalProperties );
415
465
}
416
466
417
467
@ Override
418
468
public String toString () {
419
469
StringBuilder sb = new StringBuilder ();
420
470
sb .append ("class NewPet {\n " );
421
471
sb .append (" id: " ).append (toIndentedString (id )).append ("\n " );
472
+ sb .append (" categoryRefToInlineAllofString: " ).append (toIndentedString (categoryRefToInlineAllofString )).append ("\n " );
473
+ sb .append (" categoryInlineAllofString: " ).append (toIndentedString (categoryInlineAllofString )).append ("\n " );
422
474
sb .append (" categoryInlineAllof: " ).append (toIndentedString (categoryInlineAllof )).append ("\n " );
423
475
sb .append (" categoryAllOfRef: " ).append (toIndentedString (categoryAllOfRef )).append ("\n " );
424
476
sb .append (" categoryAllOfRefDescription: " ).append (toIndentedString (categoryAllOfRefDescription )).append ("\n " );
@@ -451,6 +503,8 @@ private String toIndentedString(Object o) {
451
503
// a set of all properties/fields (JSON key names)
452
504
openapiFields = new HashSet <String >();
453
505
openapiFields .add ("id" );
506
+ openapiFields .add ("category_ref_to_inline_allof_string" );
507
+ openapiFields .add ("category_inline_allof_string" );
454
508
openapiFields .add ("category_inline_allof" );
455
509
openapiFields .add ("category_allOf_ref" );
456
510
openapiFields .add ("category_allOf_ref_description" );
@@ -486,6 +540,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
486
540
}
487
541
}
488
542
JsonObject jsonObj = jsonElement .getAsJsonObject ();
543
+ if ((jsonObj .get ("category_ref_to_inline_allof_string" ) != null && !jsonObj .get ("category_ref_to_inline_allof_string" ).isJsonNull ()) && !jsonObj .get ("category_ref_to_inline_allof_string" ).isJsonPrimitive ()) {
544
+ throw new IllegalArgumentException (String .format ("Expected the field `category_ref_to_inline_allof_string` to be a primitive type in the JSON string but got `%s`" , jsonObj .get ("category_ref_to_inline_allof_string" ).toString ()));
545
+ }
546
+ if ((jsonObj .get ("category_inline_allof_string" ) != null && !jsonObj .get ("category_inline_allof_string" ).isJsonNull ()) && !jsonObj .get ("category_inline_allof_string" ).isJsonPrimitive ()) {
547
+ throw new IllegalArgumentException (String .format ("Expected the field `category_inline_allof_string` to be a primitive type in the JSON string but got `%s`" , jsonObj .get ("category_inline_allof_string" ).toString ()));
548
+ }
489
549
// validate the optional field `category_inline_allof`
490
550
if (jsonObj .get ("category_inline_allof" ) != null && !jsonObj .get ("category_inline_allof" ).isJsonNull ()) {
491
551
NewPetCategoryInlineAllof .validateJsonElement (jsonObj .get ("category_inline_allof" ));
0 commit comments