@@ -60,6 +60,16 @@ public class NewPet {
6060 @ javax .annotation .Nullable
6161 private Long id ;
6262
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+
6373 public static final String SERIALIZED_NAME_CATEGORY_INLINE_ALLOF = "category_inline_allof" ;
6474 @ SerializedName (SERIALIZED_NAME_CATEGORY_INLINE_ALLOF )
6575 @ javax .annotation .Nullable
@@ -183,6 +193,44 @@ public void setId(@javax.annotation.Nullable Long id) {
183193 }
184194
185195
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+
186234 public NewPet categoryInlineAllof (@ javax .annotation .Nullable NewPetCategoryInlineAllof categoryInlineAllof ) {
187235 this .categoryInlineAllof = categoryInlineAllof ;
188236 return this ;
@@ -398,6 +446,8 @@ public boolean equals(Object o) {
398446 }
399447 NewPet newPet = (NewPet ) o ;
400448 return Objects .equals (this .id , newPet .id ) &&
449+ Objects .equals (this .categoryRefToInlineAllofString , newPet .categoryRefToInlineAllofString ) &&
450+ Objects .equals (this .categoryInlineAllofString , newPet .categoryInlineAllofString ) &&
401451 Objects .equals (this .categoryInlineAllof , newPet .categoryInlineAllof ) &&
402452 Objects .equals (this .categoryAllOfRef , newPet .categoryAllOfRef ) &&
403453 Objects .equals (this .categoryAllOfRefDescription , newPet .categoryAllOfRefDescription ) &&
@@ -411,14 +461,16 @@ public boolean equals(Object o) {
411461
412462 @ Override
413463 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 );
415465 }
416466
417467 @ Override
418468 public String toString () {
419469 StringBuilder sb = new StringBuilder ();
420470 sb .append ("class NewPet {\n " );
421471 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 " );
422474 sb .append (" categoryInlineAllof: " ).append (toIndentedString (categoryInlineAllof )).append ("\n " );
423475 sb .append (" categoryAllOfRef: " ).append (toIndentedString (categoryAllOfRef )).append ("\n " );
424476 sb .append (" categoryAllOfRefDescription: " ).append (toIndentedString (categoryAllOfRefDescription )).append ("\n " );
@@ -451,6 +503,8 @@ private String toIndentedString(Object o) {
451503 // a set of all properties/fields (JSON key names)
452504 openapiFields = new HashSet <String >();
453505 openapiFields .add ("id" );
506+ openapiFields .add ("category_ref_to_inline_allof_string" );
507+ openapiFields .add ("category_inline_allof_string" );
454508 openapiFields .add ("category_inline_allof" );
455509 openapiFields .add ("category_allOf_ref" );
456510 openapiFields .add ("category_allOf_ref_description" );
@@ -486,6 +540,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
486540 }
487541 }
488542 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+ }
489549 // validate the optional field `category_inline_allof`
490550 if (jsonObj .get ("category_inline_allof" ) != null && !jsonObj .get ("category_inline_allof" ).isJsonNull ()) {
491551 NewPetCategoryInlineAllof .validateJsonElement (jsonObj .get ("category_inline_allof" ));
0 commit comments