Gulp plugin for validating JSON files against JSON Schema (draft v4) using the tv4 validator. Version 1.0.0 is the latest stable release, with no recent updates. Key differentiators: it integrates seamlessly into Gulp pipelines, supports custom formats and keywords, schema preloading for $ref resolution, and options like banUnknownProperties and checkRecursive. Alternatives include gulp-ajv for newer JSON Schema drafts and better performance.
npm install gulp-json-schemaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic Gulp task that validates all JSON files in data/ against schema.json with verbose output and unknown property ban.
Use gulp-ajv or another plugin that supports newer drafts.
Use dynamic import within a CommonJS wrapper or migrate to an ESM-compatible plugin.
Consider migrating to gulp-ajv (ajv-based) for active support.
Preload schemas locally or use offline validation.
Use require('gulp-json-schema') instead.Use jsonSchema({ schema: mySchemaObject }) or jsonSchema('path/to/schema.json').Rewrite schema to be draft v4 compatible or use a different validator.