JsonSchemaValidator.validate() method
Validate data according to the given schema
Signature:
validate(dataBytes: Uint8Array, schemaBytes: Uint8Array): Promise<boolean>;
Parameters
Parameter | Type | Description |
---|---|---|
dataBytes | Uint8Array | payload to validate |
schemaBytes | Uint8Array | schema to process |
Returns:
Promise<boolean>
Promise<boolean>