Closed shaselton-usds closed 2 years ago
Syntax below:
# stream an ndjson file and validate along the way
price-validator --stream ../output/allowed-amounts.ndjson --schema ../schemas/allowed-amounts.json
# stream an ndjson file, validate, and output the results into a separate file
price-validator --stream ../output/allowed-amounts.ndjson --schema ../schemas/allowed-amounts.json --save ../output/errors.txt
Allow for the loading of files (local file system) in a streaming fashion that can be validated against the current schemas