We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f502726 commit ec46ce8Copy full SHA for ec46ce8
src/modules/CSVURLModule.js
@@ -49,16 +49,7 @@ class CSVURLModule {
49
await this.fillDataCache();
50
51
if (csvSchema) {
52
- logger.info(`Validating CSV data for ${this.url}`);
53
- if (!this.data) {
54
- const csvData = await axios(this.url);
55
- // Parse then normalize the data
56
- const parsedData = parse(csvData, {
57
- columns: (header) => header.map((column) => stringNormalizer(column)),
58
- bom: true,
59
- });
60
- this.data = normalizeEmptyValues(parsedData, this.unalterableColumns);
61
- }
+ this.data = normalizeEmptyValues(this.data, this.unalterableColumns);
62
return validateCSV(this.url, csvSchema, this.data);
63
}
64
logger.warn(`No CSV schema provided for data found at ${this.url}`);
0 commit comments