Validate a JSON file against a schema file.
Section: Schema validation workflows
Validate with Ajv CLI
bash
bash
npx ajv-cli validate -s schema.json -d data.jsonExplanation
A convenient Node-based workflow for JSON Schema validation.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Schema validation workflows