Comments (2)
The ordering must match. Using the totalColumns directive means that the validator checks that there are the expected number of column definitions given at parse time. If you do not specify it there will still be a validation error once the CSV file is actually read if the number of column definitions does not match the number of columns in the file.
There are some similar issues already #21 and #13, but I'm afraid we've not had resource availableto work on further developments recently, though we would welcome pull requests from others.
from csv-schema.
Thanks for the response.
I suggested making the order optional because CSVs are often interpreted by tools like python's Pandas, in which the columns are name-addressable, so column ordering is not required for correct operation.
And I mentioned in my original comments that for scientific data there are often additional columns of derived quantities added that don't interfere with correct (assuming name-based addressing) processing of the data.
I imagine that these additional features could add substantially to the difficulty of validation, though.
Maybe this should be tagged as "question-edging-into-enhancement-request"!
from csv-schema.
Related Issues (20)
- @optionalHeader directive HOT 2
- Clarification: @optional means full, empty, or partially full? HOT 2
- Regex ignored? HOT 1
- ISO8601 is more than just YYYY-MM-DD HOT 4
- EBNF definition of Positive Integer Literal allows (infinite) zero padding
- Conditional warning HOT 1
- Support for Non-CSV Metadata / Front Matter / Comments in CSV Files HOT 5
- A proper logical NOT operator HOT 1
- How does integrityCheck know which folders to check? HOT 2
- Incorrect RegEx for XsdTimezoneComponent
- Support for nano seconds
- Error in Example 38 - should be positiveInteger, not integer HOT 2
- Line terminator global directive
- '@columns' global directive in sample valid? HOT 1
- Incorrect `identicalExpr` grammar rule HOT 1
- `anyExpr` inconsistent definition in specification 1.1 HOT 1
- `XsdDateTimeExpr` mismatch between description and grammar HOT 1
- Regex for timezone erroneous HOT 2
- Example for uuid4 check is incorrect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csv-schema.