Documentation / @agentick/kernel / parseSchema
Function: parseSchema() ​
parseSchema<
T>(schema,value):Promise<T>
Defined in: kernel/src/schema.ts:532
Validate a value against a schema, throwing on failure.
Type Parameters ​
T ​
T = unknown
Parameters ​
schema ​
unknown
The schema to validate against
value ​
unknown
The value to validate
Returns ​
Promise<T>
The validated value
Throws ​
Error with validation issues if validation fails