Skip to content

Commit 55b8de7

Browse files
committed
add test record schema validation error
1 parent c0f0faf commit 55b8de7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

airbyte-workers/src/main/java/io/airbyte/workers/RecordSchemaValidator.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ public void validateSchema(final AirbyteRecordMessage message, final String mess
7171
throw new RecordSchemaValidationException(validationMessagesToDisplay,
7272
String.format("Record schema validation failed for %s", messageStream));
7373
}
74-
}
7574

75+
if(messageStream == "pokemon"){
76+
final Set<String> validationMessagesToDisplay = new HashSet<>();
77+
validationMessagesToDisplay.add("test validation error message");
78+
79+
throw new RecordSchemaValidationException(validationMessagesToDisplay,
80+
String.format("Record schema validation failed for %s", messageStream));
81+
}
82+
}
7683
}

0 commit comments

Comments
 (0)