{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://stride-tasks.github.io/stride/api/method/repository.task.add.schema.json",
    "type": "object",
    "required": [
        "method",
        "params"
    ],
    "properties": {
        "method": {
            "type": "string",
            "const": "repository.task.add"
        },
        "params": {
            "type": "object",
            "properties": {
                "repository-id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "The unique identifier of the repository."
                },
                "task": {
                    "$ref": "https://stride-tasks.github.io/stride/api/type/task.schema.json",
                    "description": "The task to add."
                }
            },
            "required": [
                "repository-id",
                "task"
            ]
        },
        "result": {
            "type": "object",
            "properties": {}
        }
    }
}