Validate JSON against a schema
validateCheck whether a JSON object conforms to a JSON schema (or a built-in schema_id template) and get back a valid flag plus per-field errors. Use this to verify data you already hold — a prior parse result, your own output, or an upstream feed — before acting on it or spending a credit. Deterministic, free, and needs no API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The JSON value to validate. | |
| schema | No | JSON Schema to validate against. Takes precedence over schema_id. | |
| schema_id | No | Built-in template id to validate against instead of a hand-written schema (invoice, receipt, resume, etc.). Call list_schemas for the full set. |