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

All element block contracts: { type, region, required, properties }.

toBlockSchema

JSON-schema for one content block of the given element: its declared properties plus the shared type and region keywords, everything else rejected.

Parameters

Returns

  • Object — A JSON-schema object.