barry-jones / csv-validator Goto Github PK
View Code? Open in Web Editor NEWFast CSV file validation.
License: MIT License
Fast CSV file validation.
License: MIT License
If a header is expected:
When a validation error is provided, the row number is shown but for every error there is a zero displayed for the character position the error occurs at
a) Is there any way to reject if the file has additional columns which are not defined?
or
b) Can I specify maxColumns, along with columnSeperator, which is checked for each row?
Header rows are not validated and when a header row is checked against the row requirements it can produce invalid failures
When a file uses a comma to separate fields, commas in quoted fields are not escaped so they get processed as a new column.
Might be worth looking at CsvHelper as they seem to handle this
It would help the user understand what format is required if the pattern was provided in the error message
After the validation is complete currently the application only provides information about the overall failure or success of the file. When a failure occurs it should display a summary of the errors.
Update validator configuration to make constructing validator configurations easier.
Examples:
ValidatorConfiguration config = new ValidatorConfiguration();
config.Set(1, isNumeric: true);
config.Set(2, maxLength: 20, isRequired: true);
Validator validator = Validator.FromConfiguration(config);
Hi, this looks awesome.
Any chance of deploying as a NuGet package to use as a library within another application.
Large files, especially those which will pass validation do not give any indication to the user that the application is progressing.
It would be helpful to the user to understand which column is invalid.
Hello there. Getting the following error when trying to install this package to a new console project.
https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/NU1108
Apparently, it is reporting some sort of circular dependency. Let me know if you need any more information.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.