Skip to content

Commit 0790096

Browse files
committed
Temp workaround on nameClean field
1 parent ab8abc8 commit 0790096

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

java/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ hs_err_pid*
1919
target
2020
.gradle
2121
build
22+
23+
# IDE configuration
24+
.idea

java/src/main/java/com/spoonacular/client/model/RecipeInformationExtendedIngredientsInner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
426426
// check to see if the JSON string contains additional fields
427427
for (Map.Entry<String, JsonElement> entry : entries) {
428428
if (!RecipeInformationExtendedIngredientsInner.openapiFields.contains(entry.getKey())) {
429-
throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `RecipeInformationExtendedIngredientsInner` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
429+
System.out.println(String.format("The field `%s` in the JSON string is not defined in the `RecipeInformationExtendedIngredientsInner` properties. JSON: %s", entry.getKey(), jsonElement.toString()));
430430
}
431431
}
432432

0 commit comments

Comments
 (0)