validate_json
Validate JSON against a JSON Schema, reporting every error with a JSON Pointer path to fix extraction mistakes in one pass.
Instructions
Validate a JSON string against a JSON Schema (Draft 2020-12).
Reports EVERY validation error with a JSON Pointer path, not just the first, so extraction mistakes can be fixed in one pass.
Args: data: The JSON document to validate, as a string. json_schema: The JSON Schema to validate against, as a string.
Returns {valid, error_count, errors:[{pointer, message, validator}]}; 'pointer' is a JSON Pointer into the data ('' means the document root).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| json_schema | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||