Skip to main content

JsonSchemaValidator.validate() method

Validate data according to the given schema

Signature:

validate(dataBytes: Uint8Array, schemaBytes: Uint8Array): Promise<boolean>;

Parameters

ParameterTypeDescription
dataBytesUint8Arraypayload to validate
schemaBytesUint8Arrayschema to process

Returns:

Promise<boolean>

Promise<boolean>