Skip to content

Commit 64fc115

Browse files
committed
fix: strip UUID.validateJsonElement calls from generated sources
Post-generation sed only removed Object.validateJsonElement but UUID.validateJsonElement also has no such method, causing compile errors in GetTeamIdParameter and GetAlertFieldIdParameter.
1 parent a5f4bd7 commit 64fc115

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

src/main/java/com/rootly/client/model/GetAlertFieldIdParameter.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ public GetAlertFieldIdParameter read(JsonReader in) throws IOException {
100100
// deserialize UUID
101101
try {
102102
// validate the JSON object to see if any exception is thrown
103-
UUID.validateJsonElement(jsonElement);
104103
actualAdapter = adapterUUID;
105104
GetAlertFieldIdParameter ret = new GetAlertFieldIdParameter();
106105
ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement));
@@ -221,7 +220,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
221220
ArrayList<String> errorMessages = new ArrayList<>();
222221
// validate the json string with UUID
223222
try {
224-
UUID.validateJsonElement(jsonElement);
225223
return;
226224
} catch (Exception e) {
227225
errorMessages.add(String.format("Deserialization for UUID failed with `%s`.", e.getMessage()));

src/main/java/com/rootly/client/model/GetTeamIdParameter.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ public GetTeamIdParameter read(JsonReader in) throws IOException {
100100
// deserialize UUID
101101
try {
102102
// validate the JSON object to see if any exception is thrown
103-
UUID.validateJsonElement(jsonElement);
104103
actualAdapter = adapterUUID;
105104
GetTeamIdParameter ret = new GetTeamIdParameter();
106105
ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement));
@@ -221,7 +220,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
221220
ArrayList<String> errorMessages = new ArrayList<>();
222221
// validate the json string with UUID
223222
try {
224-
UUID.validateJsonElement(jsonElement);
225223
return;
226224
} catch (Exception e) {
227225
errorMessages.add(String.format("Deserialization for UUID failed with `%s`.", e.getMessage()));

0 commit comments

Comments
 (0)