Skip to content

Reference

Utils — OCF comparison

Deep equality and structured diffs for OCF JSON with options to ignore internal or deprecated fields; helpers to strip fields and emit OcfMismatchError.

ocfComparison provides ocfDeepEqual, ocfCompare, and diffOcfObjects for comparing manifests or single entities. DEFAULT_INTERNAL_FIELDS / DEFAULT_DEPRECATED_FIELDS control ignored keys. createOcfMismatchError / isOcfMismatchError support assertion-style checks; stripInternalFields removes keys before persistence or display.

Source