Skip to content

A CLI to validate CSV-Ws (W3C's CSV on the Web standard).

License

Notifications You must be signed in to change notification settings

ONSdigital/csvw-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csvw-check

Validate CSV-W based on tests provided by W3C (https://w3c.github.io/csvw/tests/#manifest-validation)

Using csvw-check

Help

$ csvw-check --help
csvw-check 0.0.1
Usage: csvw-check [options]

  -s, --schema <value>     filename of Schema/metadata file
  -c, --csv <value>        filename of CSV file
  -l, --log-level <value>  OFF|ERROR|WARN|INFO|DEBUG|TRACE
  -h, --help               prints this usage text

Docker

$ docker pull gsscogs/csvw-check:latest
$ docker run --rm gsscogs/csvw-check:latest bin/csvw-check -s https://w3c.github.io/csvw/tests/test011/tree-ops.csv-metadata.json
Valid CSV-W

Not Docker

Acquire the latest universal 'binary' ZIP file from the releases tab (e.g. csvw-check-0.0.3.zip).

$ bin/csvw-check -s https://w3c.github.io/csvw/tests/test011/tree-ops.csv-metadata.json
Valid CSV-W