{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "LHCb Deposit Schema.",
    "type": "object",
    "description": "Describe information needed for deposit module.",
    "properties": {
        "stripping_turbo_selection": {
            "items": {
                "type": "object",
                "properties": {
                    "dataset_type": {
                        "enum": [
                            "mc_data",
                            "real_data"
                        ],
                        "type": "string",
                        "title": "Type of Dataset"
                    },
                    "stripping_turbo_line": {
                        "type": "string",
                        "title": "Stripping/TURBO Line"
                    },
                    "name": {
                        "type": "string",
                        "title": "Custom Name"
                    },
                    "bookkeping_locations": {
                        "items": {
                            "type": "string"
                        },
                        "type": "array",
                        "title": "Bookkeeping Locations"
                    }
                }
            },
            "type": "array",
            "title": "Stripping/Turbo Selections"
        },
        "ntuple_userdst_production": {
            "items": {
                "type": "object",
                "properties": {
                    "output_eos_location": {
                        "type": "string",
                        "title": "Output EOS Location"
                    },
                    "name": {
                        "type": "string",
                        "title": "Custom name"
                    },
                    "wg_production_bk_path": {
                        "type": "string",
                        "title": "WG Production Bookkeeping Path"
                    },
                    "davinci_version": {
                        "type": "string",
                        "title": "DaVinci Version"
                    },
                    "davinci_scripts": {
                        "items": {
                            "x-cap-file": {},
                            "type": "string"
                        },
                        "type": "array",
                        "title": "DaVinci Scripts"
                    },
                    "input_dataset": {
                        "type": "string",
                        "title": "Input Dataset"
                    },
                    "platform": {
                        "type": "string",
                        "title": "Platform"
                    },
                    "ganga_scripts": {
                        "items": {
                            "x-cap-file": {},
                            "type": "string"
                        },
                        "type": "array",
                        "title": "Ganga Scripts"
                    }
                }
            },
            "type": "array",
            "description": "Please provide information about the steps of the analysis",
            "title": "ntuple/userDST-production"
        },
        "user_analysis": {
            "type": "object",
            "properties": {
                "additional_repos": {
                    "items": {
                        "type": "string"
                    },
                    "type": "array",
                    "title": "Additional Repositories"
                },
                "basic_scripts": {
                    "type": "object",
                    "properties": {
                        "command": {
                            "type": "string",
                            "title": "Command to execute code"
                        },
                        "scripts": {
                            "items": {
                                "x-cap-file": {},
                                "type": "string"
                            },
                            "type": "array",
                            "title": "Files/Scripts"
                        }
                    },
                    "title": "Basic scripts"
                },
                "docker_registries": {
                    "items": {
                        "x-cap-file": {},
                        "type": "string"
                    },
                    "type": "array",
                    "title": "Docker images of the analysis"
                },
                "gitlab_links": {
                    "items": {
                        "x-cap-file": {},
                        "type": "string"
                    },
                    "type": "array",
                    "title": "Gitlab repositories of the analysis"
                }
            },
            "title": "User Analysis"
        },
        "_cap_status": {
            "type": "object",
            "properties": {
                "url": {
                    "type": "string"
                },
                "message": {
                    "type": "string"
                }
            }
        },
        "additional_resources": {
            "properties": {
                "documentations": {
                    "items": {
                        "type": "object",
                        "description": "Add documentation",
                        "properties": {
                            "url": {
                                "type": "string",
                                "title": "URL"
                            },
                            "title": {
                                "type": "string",
                                "title": "Title"
                            }
                        }
                    },
                    "type": "array",
                    "id": "documentations",
                    "title": "Documentations"
                },
                "internal_discussions": {
                    "items": {
                        "type": "object",
                        "properties": {
                            "url": {
                                "type": "string",
                                "title": "URL"
                            },
                            "meeting": {
                                "type": "string",
                                "title": "eGroup"
                            },
                            "title": {
                                "type": "string",
                                "title": "Title"
                            }
                        }
                    },
                    "type": "array",
                    "id": "internal-discussions",
                    "title": "Internal Discussions"
                },
                "presentations": {
                    "items": {
                        "type": "object",
                        "properties": {
                            "url": {
                                "type": "string",
                                "title": "URL"
                            },
                            "meeting": {
                                "type": "string",
                                "title": "Meeting (GROUP)"
                            },
                            "title": {
                                "type": "string",
                                "title": "Title"
                            }
                        },
                        "title": "Reports"
                    },
                    "type": "array",
                    "id": "presentations",
                    "title": "Presentations"
                },
                "publications": {
                    "items": {
                        "type": "object",
                        "properties": {
                            "roles": {
                                "type": "string",
                                "title": "Roles"
                            },
                            "public_paper": {
                                "type": "string",
                                "title": "Public Paper"
                            },
                            "arxiv_id": {
                                "type": "string",
                                "title": "ArXiv ID"
                            },
                            "review_egroup": {
                                "type": "string",
                                "title": "Review Group"
                            },
                            "url": {
                                "type": "string",
                                "title": "URL"
                            },
                            "conf_report": {
                                "type": "string",
                                "title": "Conference Report (CONF)"
                            },
                            "analysis_number": {
                                "type": "string",
                                "title": "Analysis Note (ANA)"
                            },
                            "twiki": {
                                "type": "string",
                                "title": "TWiki Page"
                            }
                        }
                    },
                    "type": "array",
                    "id": "publications",
                    "title": "Publications"
                }
            },
            "type": "object",
            "description": "Please provide information about the additional resources of the analysis",
            "title": "Additional Resources"
        },
        "basic_info": {
            "id": "basic_info",
            "description": "Please provide some information relevant for all parts of the Analysis here",
            "type": "object",
            "properties": {
                "analysis_proponents": {
                    "items": {
                        "type": "object",
                        "properties": {
                            "orcid": {
                                "pattern": "^[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{4}$",
                                "type": "string",
                                "title": "ORCID"
                            },
                            "name": {
                                "type": "string",
                                "title": "Name"
                            }
                        }
                    },
                    "type": "array",
                    "title": "Proponents"
                },
                "analysis_status": {
                    "enum": [
                        "None",
                        "0 - planned / open topic",
                        "1 - in preparation",
                        "2 - ANA note released",
                        "3 - review committee",
                        "4 - collaboration review",
                        "5 -",
                        "6 - CONF note published",
                        "7 -",
                        "8 - journal review",
                        "9 - PAPER published",
                        "x - other"
                    ],
                    "type": "string",
                    "title": "Status"
                },
                "review_egroup": {
                    "type": "string",
                    "title": "Review eGroup"
                },
                "reviewers": {
                    "items": {
                        "type": "object",
                        "properties": {
                            "orcid": {
                                "pattern": "^[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{4}$",
                                "type": "string",
                                "title": "ORCID"
                            },
                            "name": {
                                "type": "string",
                                "title": "Name"
                            }
                        }
                    },
                    "type": "array",
                    "title": "Reviewers"
                },
                "analysis_title": {
                    "type": "string",
                    "description": "Provide a name for your analysis. This will be displayed as an analysis title when shared.",
                    "title": "Analysis Name"
                },
                "measurement": {
                    "type": "string",
                    "title": "Measurement"
                },
                "keywords": {
                    "type": "string",
                    "id": "keywords",
                    "title": "Keywords"
                },
                "institutes": {
                    "enum": [
                        "None",
                        "IFT",
                        "B_Q",
                        "BDC",
                        "DP",
                        "CD",
                        "QEE",
                        "RD",
                        "Charm",
                        "SLB",
                        "B2OC"
                    ],
                    "type": "string",
                    "title": "Institutes Involved"
                }
            },
            "title": "Basic Information"
        }
    }
}