Type Alias: CompiledValidator()
CompiledValidator = (
value,path?) =>JsonSchemaValidationError[]
Defined in: src/Mnemonic/json-schema.ts:172
A pre-compiled validation function generated by compileSchema.
Accepts a value and an optional JSON Pointer path for error reporting. Returns an array of validation errors (empty = valid).
Parameters
| Parameter | Type |
|---|---|
value | unknown |
path? | string |