digital-preservation / csv-schema

CSV Schema
http://digital-preservation.github.io/csv-schema
Mozilla Public License 2.0
98 stars 33 forks source link

@optionalHeader directive #21

Closed circlespainter closed 2 years ago

circlespainter commented 5 years ago

I'd like expressing in a schema that both CSV files with a header line and CSV files without can be validated. In order to disambiguate it could be also required, when this directive is used, that columns be defined only through identifiers and not offsets and the columns identifiers will be used to check if an header is present.

lightswitch05 commented 5 years ago

This is a duplication of #16 - Ability to make column headers optional - which also has a closed pull request #17 - Added three new directives: Max Columns, Min Columns, and Optional Column

DavidUnderdown commented 2 years ago

Closed as duplicate as noted above