validate_json_schema
Validate JSON Schemas against their meta-schema and optionally validate data against the schema, with precise instance, schema, and line error locations.
Instructions
Check a JSON Schema against its meta-schema and, if given, validate data against it. Every error has the instance path, the schema path and, for text input, the line.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | Force a draft; by default from $schema, else 2020-12. | |
| schema | No | The JSON Schema, as JSON or YAML text (or a JSON object). | |
| instance | No | Data to validate: JSON or YAML text, or the value itself. Optional. | |
| schema_path | No | A local file instead of `schema`. | |
| instance_path | No | Data to validate, from a local file. |