A repository of JSON Schema meta-schemas – the schemas that describe JSON Schema documents themselves. This package provides pre-built JSON Schema drafts (e.g., draft-04, draft-07, 2019-09, 2020-12) as reusable modules. Current stable version is 1.3.0, released on a monthly cadence. Key differentiator: it is the canonical source for meta-schemas, maintained by the JSON Schema specification authors, and includes official drafts and hyper-schemas.
npm install json-metaschemaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing and logging four different schema exports: draft04, draft07, the latest metaSchema, and the allSchemas array.
Update imports to use named exports: import { draft04 } from 'json-metaschema'Filter duplicates manually or use individual named exports.
Use import syntax or import from the main entry.
Use dynamic import() inside CommonJS or switch to ESM module.
Use draft-07 instead.
Install @types/json-metaschema or upgrade to >=1.3.0 which includes built-in types.
Use import() or switch to ESM: 'type': 'module' in package.json.
Use 'draft04' (camelCase) as exported name.
Use import { draft04 } from 'json-metaschema' instead.No dependency data recorded yet.