{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "RoutineOutline",
    "description": "A squash training routing containing many activities. Activities are stored as references to Activity ids.",
    "type": "object",
    "properties": {
        "id": {
            "description": "Unique identifier for the routine.",
            "type": "string"
        },
        "name": {
            "description": "Name of the routine.",
            "type": "string"
        },
        "activities": {
            "description": "List of activities in the routine.",
            "type": "array",
            "minItems": 1,
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "description": "id of the activity.",
                        "type": "string"
                    },
                    "time": {
                        "description": "Time in seconds that the activity should run.",
                        "type": "number",
                        "minimum": 1
                    }
                },
                "required": [
                    "id",
                    "time"
                ]
            }
        }
    }
}