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
if (jsonObj.get("languages") != null && !jsonObj.get("languages").isJsonArray()) {
1013
1103
thrownewIllegalArgumentException(String.format("Expected the field `languages` to be an array in the JSON string but got `%s`", jsonObj.get("languages").toString()));
1014
1104
}
1105
+
if ((jsonObj.get("occurrenceKind") != null && !jsonObj.get("occurrenceKind").isJsonNull()) && !jsonObj.get("occurrenceKind").isJsonPrimitive()) {
1106
+
thrownewIllegalArgumentException(String.format("Expected the field `occurrenceKind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("occurrenceKind").toString()));
1107
+
}
1015
1108
if ((jsonObj.get("ownerId") != null && !jsonObj.get("ownerId").isJsonNull()) && !jsonObj.get("ownerId").isJsonPrimitive()) {
1016
1109
thrownewIllegalArgumentException(String.format("Expected the field `ownerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ownerId").toString()));
1017
1110
}
1018
1111
// ensure the optional json data is an array if present
1019
1112
if (jsonObj.get("platforms") != null && !jsonObj.get("platforms").isJsonArray()) {
1020
1113
thrownewIllegalArgumentException(String.format("Expected the field `platforms` to be an array in the JSON string but got `%s`", jsonObj.get("platforms").toString()));
1021
1114
}
1115
+
if ((jsonObj.get("recurrence") != null && !jsonObj.get("recurrence").isJsonNull()) && !jsonObj.get("recurrence").isJsonPrimitive()) {
1116
+
thrownewIllegalArgumentException(String.format("Expected the field `recurrence` to be a primitive type in the JSON string but got `%s`", jsonObj.get("recurrence").toString()));
1117
+
}
1022
1118
// ensure the optional json data is an array if present
1023
1119
if (jsonObj.get("roleIds") != null && !jsonObj.get("roleIds").isJsonArray()) {
1024
1120
thrownewIllegalArgumentException(String.format("Expected the field `roleIds` to be an array in the JSON string but got `%s`", jsonObj.get("roleIds").toString()));
1025
1121
}
1122
+
if ((jsonObj.get("seriesId") != null && !jsonObj.get("seriesId").isJsonNull()) && !jsonObj.get("seriesId").isJsonPrimitive()) {
1123
+
thrownewIllegalArgumentException(String.format("Expected the field `seriesId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("seriesId").toString()));
1124
+
}
1026
1125
// ensure the optional json data is an array if present
1027
1126
if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonArray()) {
1028
1127
thrownewIllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString()));
0 commit comments