{
    "$id": "https://guaix.fis.ucm.es/numina/drp-schema.json",
    "$schema": "http://json-schema.org/draft-07/schema#",
    "title": "DRP",
    "description": "Describe numina DRP files",
    "type": "object",
    "properties": {
        "name": {
            "type": "string"
        },
        "configurations": {
            "type": "object"
        },
        "modes": {
            "type": "array",
            "items": {
                "$ref": "#/definitions/mode_desc"
            }
        },
        "pipelines": {
            "type": "object"
        }
    },
    "required": [
        "name",
        "modes",
        "pipelines"
    ],
    "definitions": {
        "uuid": {
            "type": "string",
            "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
        },
        "datetime": {
            "type": "string",
            "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{1,4})?$"
        },
        "mode_desc": {
            "type": "object",
            "properties": {
                "name": {
                    "type": "string"
                },
                "key": {
                    "type": "string"
                }
            },
            "required": [
                "name",
                "key"
            ]
        }
    }
}