There is a missingValues property in Table Schema specification. As a first try we set missingValues to N/A in table.schema.descriptor
It would be nice if TableSchemaError, instead of having attributes:
{
message: 'The value "N/A" in column "geometry" is not type "geojson" and format "topojson"',
columnNumber: 10,
rowNumber: 5
}
could have:
{
message: 'The value "N/A" in column "geometry" is not type "geojson" and format "topojson"',
columnNumber: 10,
rowNumber: 5,
offendingValue: 'N/A',
column: 'geometry',
expectedType: 'geojson',
expectedFormat: 'topojson'
}
(honestly, offendingValue would be enough)
Currently, if I want to add offending values to missingValues I have to do a regex on TableSchemaError.message.
As said in README.md
It would be nice if
TableSchemaError
, instead of having attributes:could have:
(honestly,
offendingValue
would be enough)Currently, if I want to add offending values to
missingValues
I have to do a regex onTableSchemaError.message
.