JSON Schema validator
json_schema_validateValidate a JSON document, or up to 1000 of them, against a JSON Schema (draft 7, 2019-09 or 2020-12) and list every error with its path. Cost: 1 credit per call. Output: JSON. {valid, errors: [{index, path, message, validator}], count}; meta: {draft, instances, truncated?}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | JSON Schema draft. auto follows the schema's $schema and defaults to 2020-12. | auto |
| schema | Yes | The JSON Schema to validate against. | |
| instance | No | One JSON value to validate (any type, including null). Use this or instances. | |
| instances | No | Up to 1000 JSON values validated against the same schema. Use this or instance. |