Skip to content

Function: validateImportedData() ​

ts
function validateImportedData(documentData, profile): object;

Defined in: domain/schema-utils.ts:956

Validate imported document data against profile Returns validation errors if data doesn't match profile structure

Parameters ​

ParameterType
documentDataDocumentData
profileDocumentProfile

Returns ​

object

errors ​

ts
errors: string[];

valid ​

ts
valid: boolean;