You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewIOException("Failed to serialize as the type doesn't match oneOf schemas: MultiChannelChannelListMMSObject, MultiChannelChannelListRBMObject, MultiChannelChannelListSMSObject");
109
+
thrownewIOException("Failed to serialize as the type doesn't match anyOf schemas: MultiChannelChannelListMMSObject, MultiChannelChannelListRBMObject, MultiChannelChannelListSMSObject");
110
110
}
111
111
112
112
@Override
@@ -149,8 +149,9 @@ public MultiChannelChannelListRequestObject read(JsonReader in) throws IOExcepti
149
149
// validate the JSON object to see if any exception is thrown
thrownewIOException(String.format(Locale.ROOT, "Failed deserialization for MultiChannelChannelListRequestObject: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString()));
187
+
thrownewIOException(String.format(Locale.ROOT, "Failed deserialization for MultiChannelChannelListRequestObject: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString()));
errorMessages.add(String.format(Locale.ROOT, "Deserialization for MultiChannelChannelListMMSObject failed with `%s`.", e.getMessage()));
323
319
// continue to the next one
324
320
}
325
-
if (validCount != 1) {
326
-
thrownewIOException(String.format(Locale.ROOT, "The JSON string is invalid for MultiChannelChannelListRequestObject with oneOf schemas: MultiChannelChannelListMMSObject, MultiChannelChannelListRBMObject, MultiChannelChannelListSMSObject. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString()));
327
-
}
321
+
thrownewIOException(String.format(Locale.ROOT, "The JSON string is invalid for MultiChannelChannelListRequestObject with anyOf schemas: MultiChannelChannelListMMSObject, MultiChannelChannelListRBMObject, MultiChannelChannelListSMSObject. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", errorMessages, jsonElement.toString()));
0 commit comments