validate
@hyperledger/identus-sdk v7.0.0
@hyperledger/identus-sdk / overview / Utils / validate
Function: validate()
validate<
T>(json:unknown,schema:T):asserts json is Static<T>
Defined in: src/utils/validation.ts:26
validate Type assertion - assert a value matches a schema
Type Parameters
| Type Parameter | 
|---|
| TextendsTObject<TProperties> | 
Parameters
| Parameter | Type | Description | 
|---|---|---|
| json | unknown | |
| schema | T | 
Returns
asserts json is Static<T>
Throws
Error - list of issues