JSON Schema Validator
json_validateValidates data against a JSON Schema (draft 2020-12/07 core: types, required, properties, items, enums, ranges, patterns, formats, combinators, local $ref), or checks raw JSON syntax when only json is given. Returns valid true/false and a list of errors with their paths. Use it to check API payloads or model output against a schema. Limits: remote $ref is not fetched; only core vocabulary is supported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | value to validate | |
| json | No | raw JSON text (syntax check, or data as text) | |
| schema | No | JSON Schema (object or JSON string) |