{
    "additionalProperties": false,
    "description": "This is validation for file metadata fields that the OSF allows to be edited by the user. These fields will match the fields presented to the user on a file metadata form on the OSF.",
    "properties": {
        "file_description": {
            "description": "The description of the file",
            "type": "string"
        },
        "funders": {
            "description": "Funders responsible for funding the resource.",
            "items": {
                "additionalProperties": false,
                "properties": {
                    "funding_agency": {
                        "description": "The name of the funding provider",
                        "type": "string"
                    },
                    "grant_number": {
                        "description": "The code assigned by the funder to a sponsored award (grant).",
                        "type": "string"
                    }
                },
                "required": [
                    "funding_agency"
                ],
                "type": "object"
            },
            "type": "array"
        },
        "related_publication_doi": {
            "description": "The DOI of a related resource.",
            "pattern": "10\\..+/.+",
            "type": "string"
        },
        "resource_type": {
            "enum": [
                "Audio/Video",
                "Dataset",
                "Image",
                "Model",
                "Software",
                "Book",
                "Funding Submission",
                "Journal Article",
                "Lesson",
                "Poster",
                "Preprint",
                "Presentation",
                "Research Tool",
                "Thesis",
                "Other"
            ],
            "type": "string"
        }
    },
    "title": "OSF Specific Fields for the Datacite Schema",
    "type": "object"
}