# Project-schema.json

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "../Documentation/Implementation/data_model/Json/",
    "title": "Project",
    "description": "Project schema",
    "dataTypes": null,
    "type": "object",
    "properties": {
        "title": {
            "type": "string",
            "description": "Project title"
        },
        "acronym": {
            "type": "string",
            "description": "Project acronym"
        },
        "description": {
            "type": "string",
            "description": "Project description"
        },
        "funding": {
            "type": "array",
            "items": {
                "type": "object",
                "$comment": "class=Funding",
                "properties": {
                    "dbid": {
                        "type": "number"
                    }
                },
                "required": [
                    "dbid"
                ]
            },
            "description": "Source(s) of funding for a research project or activity"
        },
        "startDate": {
            "type": "string",
            "format": "date",
            "description": "Project start date"
        },
        "endDate": {
            "type": "string",
            "format": "date",
            "description": "Project end date"
        },
        "partner": {
            "type": "array",
            "items": {
                "type": "object",
                "$comment": "class=Partner",
                "properties": {
                    "dbid": {
                        "type": "number"
                    }
                },
                "required": [
                    "dbid"
                ]
            },
            "description": "Partners in a research project or activity"
        },
        "principalInvestigator": {
            "type": "array",
            "items": {
                "type": "object",
                "$comment": "class=Person",
                "properties": {
                    "dbid": {
                        "type": "number"
                    }
                },
                "required": [
                    "dbid"
                ]
            },
            "description": "Project principal investigator"
        }
    },
    "required": [
        "title",
        "acronym",
        "description",
        "funding",
        "startDate",
        "endDate",
        "partner",
        "principalInvestigator"
    ]
}