Skip to content

validate

Check TSP package validity.

Synopsis

tsp-maker validate TSP_PATH

Arguments

Argument Description
TSP_PATH Path to TSP package directory

Example

tsp-maker validate /my-dataset

Output:

VALID

For full validation, use tslstructures::validate_tsp() in R.

Checks Performed

The basic validation checks:

  • [x] datapackage.json exists and is valid JSON
  • [x] metadata.parquet exists
  • [x] structures/ directory exists with batch archives
  • [x] Required fields present in datapackage.json

Error Examples

Missing file:

INVALID
  ERROR: Missing required file: metadata.parquet

Invalid JSON:

INVALID
  ERROR: Invalid JSON in datapackage.json: Expecting ',' delimiter

Full Validation

For comprehensive validation including schema checks and data integrity, use the R package:

library(tslstructures)
result <- validate_tsp("/my-dataset")
print(result)

The R validator checks:

  • JSON Schema compliance
  • Parquet file integrity
  • Batch archive contents
  • Checksum verification
  • Cross-file consistency