validate_against_schema
Validate extracted data against a JSON Schema, receiving a structured report listing passed, failed, and missing fields with reasons for each failure.
Instructions
Validate extracted data against a JSON Schema.
Args: data: The data to check (e.g. the "data" from extract_fields). schema: JSON Schema to validate against.
Returns: A structured report with passed/failed/missing field lists and a human-readable reason for each failure. Never raises: invalid schemas are reported via the "error" key instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| schema | Yes |