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.
- Node 22 or nvm
- NPM
If using nvm:
nvm use
npm install
npm run validate /PATH/TO/FOLDER
or
node validate.js /PATH/TO/FOLDER