# Project-schema.json

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "../Documentation/Implementation/data_model/Json/",
    "title": "Project",
    "description": "Project schema",
    "type": "object",
    "properties": {
        "title": {
            "type": "string",
            "description": "Titre du projet"
        },
        "acronym": {
            "type": "string",
            "description": "Acronyme du projet"
        },
        "description": {
            "type": "string",
            "description": "Description du projet"
        },
        "funding": {
            "type": "array",
            "items": {
                "type": "object",
                "$comment": "class=Funding",
                "properties": {
                    "dbid": {
                        "type": "number"
                    }
                },
                "required": [
                    "dbid"
                ]
            },
            "description": "Source(s) de financement d'un projet ou d'une activité de recherche"
        },
        "startDate": {
            "type": "string",
            "format": "date",
            "description": "Début de projet"
        },
        "endDate": {
            "type": "string",
            "format": "date",
            "description": "Fin de projet"
        },
        "partner": {
            "type": "array",
            "items": {
                "type": "object",
                "$comment": "class=Partner",
                "properties": {
                    "dbid": {
                        "type": "number"
                    }
                },
                "required": [
                    "dbid"
                ]
            },
            "description": "Partenaires d'un projet ou d'une activité de recherche"
        },
        "principalInvestigator": {
            "type": "object",
            "$comment": "class=Person",
            "properties": {
                "dbid": {
                    "type": "number"
                }
            },
            "required": [
                "dbid"
            ],
            "description": "Coordinateur principal du projet"
        }
    },
    "required": [
        "title",
        "acronym",
        "description",
        "funding",
        "startDate",
        "endDate",
        "partner",
        "principalInvestigator"
    ]
}