# ResearchEntity-schema.json

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "../Documentation/Implementation/data_model/Json/",
    "title": "ResearchEntity",
    "description": "ResearchEntity schema",
    "dataTypes": null,
    "type": "object",
    "properties": {
        "name": {
            "type": "string",
            "description": "Name of the entity"
        },
        "acronym": {
            "type": "string",
            "description": "Acronym of the entity"
        },
        "description": {
            "type": "string",
            "description": "Description of  the  research entity"
        },
        "orgId": {
            "type": "string",
            "description": "Identifier of the entity"
        },
        "startDate": {
            "type": "string",
            "format": "date",
            "description": "Creation date of the entity"
        },
        "idType": {
            "type": "string",
            "description": "Identification system"
        },
        "partner": {
            "type": "array",
            "items": {
                "type": "object",
                "$comment": "class=Partner",
                "properties": {
                    "dbid": {
                        "type": "number"
                    }
                },
                "required": [
                    "dbid"
                ]
            },
            "description": "Supervising institutions of the research entity"
        },
        "funding": {
            "type": "array",
            "items": {
                "type": "object",
                "$comment": "class=Funding",
                "properties": {
                    "dbid": {
                        "type": "number"
                    }
                },
                "required": [
                    "dbid"
                ]
            },
            "description": "Funding source(s)"
        },
        "contributor": {
            "type": "array",
            "items": {
                "type": "object",
                "$comment": "class=Contributor",
                "properties": {
                    "dbid": {
                        "type": "number"
                    }
                },
                "required": [
                    "dbid"
                ]
            },
            "description": "Information about the head of the research entity  and/or data steward"
        }
    },
    "required": [
        "name",
        "description",
        "startDate",
        "partner",
        "funding",
        "contributor"
    ]
}