validate_vast
Validate IAB ad tag XML (VAST, VMAP, DAAST) against spec. Auto-detects document type and returns structured issues with severity and rule IDs to identify invalid tags.
Instructions
Validate an IAB ad tag XML document. Accepts VAST 2.0-4.4, VMAP 1.0, and DAAST 1.0/1.1. The document type is auto-detected from the root element. Returns all issues found with severity, rule ID, location, and spec reference. A document is valid when errors == 0, regardless of warning or info count. Use wrapper_depth when validating a VAST document inside a wrapper chain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | Raw VAST XML string to validate. | |
| wrapper_depth | No | Current wrapper chain depth (0 = root document). Default: 0. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| issues | Yes | ||
| summary | Yes | ||
| version | Yes | ||
| document_type | Yes |