Metalsmith plugin for validating metadata against JSON Schema. Version 1.2.2, stable with low release cadence. It integrates schema validation into the Metalsmith build pipeline, ensuring metadata conforms to defined schemas. Alternative to manual validation, leveraging standard JSON Schema (draft 4/7).
npm install metalsmith-json-schemaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates initializing Metalsmith with json-schema plugin, specifying schema files in glob pattern, and enabling strict validation.
Use per-file validation plugins if you need early error detection.
Pass all options as a single object: .use(plugin({ schemas: '...' }))Update imports: import plugin from 'metalsmith-json-schema' (no factory call).
Use absolute paths or ensure relative paths are correct from the source.
Install glob: npm install glob
Enable verbose logging to see detailed error messages.
Use correct import: import plugin from 'metalsmith-json-schema'; then use it as .use(plugin(...))