Skip to content

parseComponentMetadata

function parseComponentMetadata(raw): ComponentMetadataFile;

Defined in: packages/core/src/data/schema.ts:381

Parse and validate raw JSON as ComponentMetadataFile. Throws a single descriptive Error when the input violates the schema — the message lists every offending path + reason so operators can pinpoint drift.

Parameter Type
raw unknown

ComponentMetadataFile