Repository navigation
Getting Started
Alexandr Krikun edited this page Oct 26, 2026
·
1 revision
Node.js 18 or newer. No other dependencies.
# one-off run
npx github:ksanyok/schema-validator https://example.com/product
# global CLI
npm install -g github:ksanyok/schema-validator
# as a library in your project
npm install github:ksanyok/schema-validatorschema-validator https://example.com/productThe header shows the number of JSON-LD blocks and the top-level types. Each problem is prefixed with the block number and the JSON path of the node ([#1 offers]), so you can find it in the source. ✖ errors make the item ineligible for rich results, ! warnings are recommended improvements.
| Code | Meaning |
|---|---|
| 0 | No errors (warnings allowed unless --strict) |
| 1 | Errors found (or warnings with --strict) |
| 2 | Bad arguments or the check could not run |
Validate a local page or the bundled example
schema-validator --file examples/product.htmlValidate a JSON-LD file from your build
schema-validator --file dist/schema/product.jsonld --strictList every typed node
schema-validator https://example.com/recipe --typesUse the online Schema Validator.
Home · Getting started · FAQ · Troubleshooting · Online tool