{ "title": "User journey", "required": [ "stages" ], "additionalProperties": false, "properties": { "stages": { "type": "array", "minItems": 1, "maxItems": 7, "items": { "type": "object", "required": [ "label" ], "additionalProperties": false, "properties": { "label": { "type": "string", "maxLength": 24 }, "sub": { "type": "string", "maxLength": 32 }, "steps": { "type": "array", "items": { "anyOf": [ { "type": "string", "maxLength": 40 }, { "type": "object", "required": [ "label" ], "additionalProperties": false, "properties": { "label": { "type": "string", "maxLength": 40 }, "score": { "type": "number", "minimum": -2, "maximum": 2 }, "pain": { "type": "boolean" }, "focal": { "type": "boolean" }, "note": { "type": "string", "maxLength": 32 } } } ] } } } } } } }