{
    "$schema": "http://json-schema.org/draft-07/schema",
    "$id": "https://raw.githubusercontent.com/nf-core/demultiplex/master/assets/schema_input.json",
    "title": "nf-core/demultiplex pipeline - params.input schema",
    "description": "Schema for the file provided with params.input",
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "flowcell": {
                "type": "string",
                "description": "Flowcell ID",
                "pattern": "^\\S+$",
                "errorMessage": "Sample name must be provided and cannot contain spaces"
            },
            "samplesheet": {
                "type": "string",
                "format": "file-path",
                "description": "Sample sheet file",
                "pattern": "^\\S+\\.csv$"
            },
            "lane": {
                "type": "integer",
                "description": "Lane number",
                "minimum": 1,
                "maximum": 8
            },
            "run_dir": {
                "type": "string",
                "description": "Run directory"
            }
        },
        "required": ["samplesheet", "run_dir"]
    }
}
