data_json_schema_validator
Validates JSON data against a JSON Schema using Ajv, reporting all constraint failures with keyword, path, and message. Detects schema version from $schema URI.
Instructions
JSON Schema Validator (Draft 2020-12, Ajv). Validate a JSON instance against a JSON Schema (Draft 2020-12 by default; 2019-09, 7, 6, 4 are recognised from the schema $schema URI) using Ajv with ajv-formats, and report every constraint failure. Use this to check data you already have against a schema you already have; use data_json_schema_generator instead to infer a schema from a sample document. Compiles and validates locally on the input you provide: read-only, non-destructive, contacts no external service and does not fetch remote $ref schemas over the network, and is rate-limited (60 requests/minute for anonymous callers). Returns a valid flag and an errors array (each with keyword, instancePath, schemaPath, and message) plus an error count and the detected schema version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | Yes | JSON Schema to validate against, as an object/boolean or a raw-JSON string. Draft is auto-detected from its $schema URI (defaults to Draft 2020-12). | |
| instance | Yes | JSON document to validate. Accepts a parsed value (object, array, number, boolean, null) or a raw-JSON string, which is parsed when it looks like JSON. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | True when validation ran (independent of whether the instance was valid). | |
| operation | No | Always validate. | |
| result | No | The validation result payload. |