Function: normalizeDocument()
ts
function normalizeDocument(documentData, ctx): DocumentData;Defined in: domain/shadow-model.ts:159
Normalizes document data against the profile schema, migrating legacy value shapes. When ctx.pruneEmpty is set, blank Literal and RichText values are dropped.
Parameters
| Parameter | Type |
|---|---|
documentData | DocumentData |
ctx | SchemaContext |