Skip to content

CondeNast/tny-archive-schemas

Repository files navigation

tny-archive-schemas

Validation

validate.js is a Node.js script that validates all of the JSON files in a given folder. (It also validates individual JSON files.) It uses the @cfworker/json-schema NPM package to perform the validation, based on the article.schema.json JSON schema.

Requirements

  • Node 22 or nvm
  • NPM

Usage

If using nvm:

nvm use
npm install
npm run validate /PATH/TO/FOLDER

or

node validate.js /PATH/TO/FOLDER