{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://raw.githubusercontent.com/nf-core/nanostring/master/assets/schema_input.json",
    "title": "nf-core/nanostring pipeline - params.input schema",
    "description": "Schema for the file provided with params.input",
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "SAMPLE_ID": {
                "type": "string",
                "pattern": "^\\S+$",
                "errorMessage": "Sample name must be provided and cannot contain spaces",
                "meta": ["id"]
            },
            "RCC_FILE": {
                "type": "string",
                "format": "file-path",
                "exists": true,
                "pattern": "^\\S+\\.RCC$",
                "errorMessage": "RCC file must be provided, cannot contain spaces and must have extension '.RCC' or '.rcc'"
            },
            "RCC_FILE_NAME": {
                "type": "string",
                "pattern": "^\\S+\\.RCC$",
                "meta": ["rcc_file_name"]
            },
            "TIME": {
                "type": ["string", "integer"],
                "meta": ["time"]
            },
            "TREATMENT": {
                "type": ["string", "integer"],
                "meta": ["treatment"]
            },
            "INCLUDE": {
                "type": "integer",
                "enum": [0, 1],
                "meta": ["include"]
            },
            "OTHER_METADATA": {
                "type": "string",
                "meta": ["other_metadata"]
            }
        },
        "required": ["SAMPLE_ID", "RCC_FILE", "RCC_FILE_NAME"]
    }
}
