Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Example Java code of using the CSV Validator through the Java API:
csvReader, csvSchemaReader
)

List<FailMessage> messages = validateWithStringNames
Result result = validateWithStringNames
.usingCsvEncoding(csvEncoding, validateCsvEncoding) // should only be `true` if using UTF-8 encoding, otherwise it will throw an exception
.usingCsvSchemaEncoding(csvSchemaEncoding)
.usingFailFast(failFast)
Expand All @@ -87,6 +87,8 @@ Example Java code of using the CSV Validator through the Java API:
.usingMaxCharsPerCell(maxCharsPerCell)
.runValidation();

List<FailMessage> messages = ((CsvValidatorJavaBridge.ValidationResult)(result)).errors();

if(messages.isEmpty()) {
System.out.println("All worked OK");
} else {
Expand Down
Loading