{
    "$schema": "http://json-schema.org/draft-07/schema",
    "$id": "https://raw.githubusercontent.com/nf-core/raredisease/master/assets/mobile_element_references_schema.json",
    "title": "Schema for RTGTOOLS/VCFEVAL VCFs",
    "description": "Schema for the vcfeval's vcf input",
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "samplename": {
                "type": "string",
                "pattern": "^\\S+$",
                "errorMessage": "Samplename cannot contain spaces"
            },
            "vcf": {
                "type": "string",
                "format": "file-path",
                "exists": true,
                "pattern": "^\\S+\\.vcf(\\.gz)?$",
                "errorMessage": "Path to vcf files cannot contain spaces and must be a .vcf or .vcf.gz file"
            },
            "bedregions": {
                "type": "string",
                "format": "file-path",
                "exists": true,
                "pattern": "^\\S+\\.bed$",
                "errorMessage": "Path to bed files cannot contain spaces"
            },
            "evaluationregions": {
                "type": "string",
                "format": "file-path",
                "exists": true,
                "pattern": "^\\S+\\.bed$",
                "errorMessage": "Path to bed files cannot contain spaces"
            }
        },
        "required": ["vcf", "samplename"]
    }
}
