Packages

Reference Elixir validator for WPL (Wellness Plan Language) — JSON Schema + semantic invariants

Current section

Files

Jump to
wpl_validator priv conformance invalid invalid-prescription-time.json
Raw

priv/conformance/invalid/invalid-prescription-time.json

{
"$schema": "https://wpl.dev/schemas/wpl/v1.schema.json",
"version": "1.0.0",
"plan": {
"id": "55555555-5555-4555-8555-555555555555",
"name": "time prescription without duration",
"type": "workout",
"visibility": "private",
"metadata": {},
"goals": [],
"requirements": {},
"phases": [
{
"id": "phase_1", "name": "P1", "order": 1,
"duration": { "value": 1, "unit": "weeks" },
"weeks": [
{
"id": "week_1",
"name": "Week 1",
"order": 1,
"days": [
{
"id": "day_1", "day_of_week": 1, "name": "D1", "type": "training",
"blocks": [
{
"id": "main", "type": "main", "order": 1,
"activities": [
{
"id": "act_1",
"type": "exercise",
"exercise_ref": "plank",
"prescription": { "type": "time" }
}
]
}
]
}
]
}
]
}
]
}
}