Packages

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

Current section

Files

Jump to
wpl_validator priv conformance invalid invalid-personalization-action.json
Raw

priv/conformance/invalid/invalid-personalization-action.json

{
"$schema": "https://wpl.dev/schemas/wpl/v1.schema.json",
"version": "1.6.0",
"plan": {
"id": "66666666-6666-4666-8666-666666666666",
"name": "Bogus action type",
"type": "workout",
"visibility": "private",
"metadata": {},
"goals": [],
"requirements": {},
"personalization": {
"inputs": [
{
"id": "age",
"type": "number",
"source": "user.age"
}
],
"rules": [
{
"id": "rule_1",
"condition": {
"field": "age",
"op": "gt",
"value": 60
},
"actions": [
{
"type": "set_world_on_fire",
"scope": "plan"
}
]
}
]
},
"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": "rest"
}
]
}
]
}
]
}
}