Function: createShadow()
ts
function createShadow(documentData, ctx): DocumentData;Defined in: domain/shadow-model.ts:148
Builds the editing shadow of a document: normalizes the data against the profile schema, then merges it into a template built from the schema so that required and minimum-occurrence structure exists.
Parameters
| Parameter | Type |
|---|---|
documentData | DocumentData |
ctx | SchemaContext |