validate_spec
Validate cycling workout specs to catch mistakes like empty workouts, wrong power units, or missing FTP, returning errors and warnings for a clean, valid file.
Instructions
Check a workout spec and report every problem found.
Catches the mistakes that actually bite: empty workouts, zero or negative durations, power that resolves outside a sane fraction of FTP (usually watts and percentages swapped), ramps whose endpoints are equal, both unit forms on one block, percentages with no FTP to resolve them against, and empty or nested repeats. Unknown keys are reported as warnings, which catches typos like "powr_w" that would otherwise be silently ignored.
Returns valid/errors/warnings, plus a summary of the workout when it is valid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |