fix_vast
Auto-fix VAST XML errors with deterministic safe fixes, including HTTPS upgrades and SIMID corrections. Returns repaired XML, applied fixes, and remaining issues for manual review.
Instructions
Auto-fix a VAST XML tag. Applies all deterministic, safe fixes: HTTP → HTTPS upgrades (including SIMID HTTP://), SIMID apiFramework casing, true-intent variableDuration, missing SIMID type="text/html", and removal of deprecated attributes. Does not rewrite javascript: URLs or an existing type MIME. Returns the repaired XML, a list of every fix applied (rule ID + description + path), and any remaining issues that require manual intervention. Always re-validate the returned xml with validate_vast to confirm no errors remain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | Raw VAST XML string to auto-fix. | |
| wrapper_depth | No | Current wrapper chain depth (0 = root document). Default: 0. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | ||
| applied | Yes | ||
| remaining | Yes | ||
| applied_count | Yes | ||
| remaining_count | Yes |