Function: validateJsonSchema()
validateJsonSchema(
value,schema,path?):JsonSchemaValidationError[]
Defined in: src/Mnemonic/json-schema.ts:541
Validates a value against a JsonSchema.
Returns an empty array when the value is valid. Returns one or more JsonSchemaValidationError entries on failure. Short-circuits on type mismatch (does not report downstream keyword errors).
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
value | unknown | undefined | The value to validate |
schema | JsonSchema | undefined | The JSON Schema to validate against |
path | string | "" | Internal: JSON Pointer path for error reporting (default: "") |
Returns
Array of validation errors (empty = valid)