{
    "$schema": "http://json-schema.org/draft-07/schema",
    "$id": "https://raw.githubusercontent.com/nf-core/multiplesequencealign/master/assets/schema_input.json",
    "title": "nf-core/multiplesequencealign pipeline - params.input schema",
    "description": "Schema for the file provided with params.input",
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "id": {
                "type": "string",
                "pattern": "^\\S+$",
                "errorMessage": "Sample name must be provided and cannot contain spaces",
                "meta": ["id"]
            },
            "fasta": {
                "type": "string",
                "pattern": "^\\S+\\.f(ast)?a$",
                "errorMessage": "fasta file. Must end with .fa or .fasta"
            },
            "reference": {
                "type": "string"
            },
            "dependencies": {
                "type": "string"
            },
            "template": {
                "type": "string"
            }
        },
        "required": ["id"],
        "anyOf": [{ "required": ["fasta"] }, { "required": ["dependencies"] }]
    }
}
