Validate a template with data
validate_templateCheck a template against your data before rendering to catch syntax errors, missing fields, and type mismatches. Validate HTML or Word/PowerPoint templates and resolve warnings first.
Instructions
Checks a template with data without rendering; free. With a template slug the API checks the version a render uses (the published one, else the latest) as the render would: syntax, header and footer, errors that happen only with this data, and the data against the template's stored JSON Schema (a wrong type or a missing required field is an error). With html plus engine it compiles offline and reports syntax errors, unknown filters and variables missing from the data. Warnings leave ok true: treat each one as a question to settle before rendering. For Word and PowerPoint templates the findings name the document part and paragraph.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| html | No | Template source when no slug is given | |
| engine | No | Required with html | |
| template | No | Template slug or tpl_ id |