跳转到主要内容

validateSourceJson()

function validateSourceJson(
templateBuffer,
sourceJson,
options?): Promise<ValidationReport>;

Defined in: impl/js/src/validator.ts:88

Experimental

Validate that an xl3-source-json/0.1 payload supplies the headers required by a template. Row values are not scanned for schema-depth validation.

Added by ADR-0078 as an additive validation gate.

Parameters

ParameterType
templateBufferArrayBuffer
sourceJsonXl3SourceJsonInput
options?ValidateOptions

Returns

Promise<ValidationReport>