# DataSharing-schema.json

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "../Documentation/Implementation/data_model/Json/",
    "title": "DataSharing",
    "description": "DataSharing schema",
    "dataTypes": null,
    "type": "object",
    "properties": {
        "description": {
            "type": "string",
            "description": "Considerations regarding data sharing"
        },
        "reusability": {
            "type": "string",
            "description": "Data reuse potential and/ or reuse limitations"
        },
        "host": {
            "type": "array",
            "items": {
                "type": "object",
                "$comment": "class=Host",
                "properties": {
                    "dbid": {
                        "type": "number"
                    }
                },
                "required": [
                    "dbid"
                ]
            },
            "description": "Data hosting through a technical platform (repository, data center…)"
        },
        "distribution": {
            "type": "array",
            "items": {
                "type": "object",
                "$comment": "class=Distribution",
                "properties": {
                    "dbid": {
                        "type": "number"
                    }
                },
                "required": [
                    "dbid"
                ]
            },
            "description": "Description of data distributions"
        },
        "contributor": {
            "type": "array",
            "items": {
                "type": "object",
                "$comment": "class=Contributor",
                "properties": {
                    "dbid": {
                        "type": "number"
                    }
                },
                "required": [
                    "dbid"
                ]
            },
            "description": "Person(s) contributing to the submission and/or curation of data"
        },
        "cost": {
            "type": "array",
            "items": {
                "type": "object",
                "$comment": "class=Cost",
                "properties": {
                    "dbid": {
                        "type": "number"
                    }
                },
                "required": [
                    "dbid"
                ]
            },
            "description": "Costs associated with data deposit"
        }
    },
    "required": [
        "description",
        "distribution"
    ]
}