Skip to content

ZenFG TypeScript API / snapshot / root / validateFrameGraphSnapshot

Function: validateFrameGraphSnapshot()

validateFrameGraphSnapshot(value): readonly FrameGraphSnapshotIssue[]

Defined in: packages/snapshot/src/codec.ts:50

Validates an unknown value against the canonical Snapshot 1.2 semantic model.

Parameters

value

unknown

Returns

readonly FrameGraphSnapshotIssue[]

Remarks

This first creates an independent JSON-safe clone by inspecting own property descriptors, so getters and toJSON hooks are never invoked. It then performs structural and cross-reference checks without migrating legacy formats. Extension object/array nesting is limited by FRAME_GRAPH_SNAPSHOT_MAX_EXTENSION_DEPTH. An empty array means valid.

Open source / MIT licensed