validate_document
Validate a pretext-pdf document schema without rendering. Returns validation errors as a cheap preflight check before generating PDF.
Instructions
Validate a pretext-pdf document schema without rendering it. Returns immediately with all validation errors — use this as a cheap preflight check before calling generate_pdf. Each error includes a structured path, message, and optional typo suggestion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | The pretext-pdf document to validate (same shape as generate_pdf.document) | |
| strict | No | When true, also report unknown/misspelled properties (default: false) |