components/elements/schemas
Source: schemas.js:12
Node-importable aggregation of every element's block contract (the schema.js files) - deliberately without touching the index.js files, which import components and styles that plain node cannot load. Used by scripts/validate-content.mjs to compose the full content JSON schema; the app itself uses elements/registry.js instead.
Keep this list in sync with ELEMENT_REGISTRY in registry.js.
Other
ELEMENT_SCHEMAS
static
schemas.js:32All element block contracts: { type, region, required, properties }.
toBlockSchema
static
schemas.js:61JSON-schema for one content block of the given element: its declared properties plus the shared type and region keywords, everything else rejected.
Parameters
elementSchema(Object) — An entry of ELEMENT_SCHEMAS.
Returns
Object— A JSON-schema object.