{
    "$id": "task_schema",
    "type": "object",
    "$ref": "#/definitions/task",
    "definitions": {
        "task": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "string"
                },
                "fn": {
                    "type": "string"
                },
                "args": {
                    "anyOf": [
                        {
                            "type": "object"
                        },
                        {
                            "type": "string"
                        }
                    ]
                },
                "description": {
                    "type": "string"
                },
                "tasks": {
                    "type": "array",
                    "items": [
                        {
                            "$ref": "#/definitions/task"
                        }
                    ]
                }
            }
        }
    }
}