{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/dtu/main/json-schema/dtu-file-schema.json", "title": "DTU Data Article File", "description": "JSON Schema for a public file attached to a DTU Data article, as returned by GET /articles/{article_id}/files.", "required": [ "computed_md5", "download_url", "id", "is_link_only", "name", "size", "supplied_md5" ], "type": "object", "properties": { "id": { "type": "integer", "description": "File id", "examples": [ 3000002 ] }, "name": { "type": "string", "description": "File name", "examples": [ "test.xls" ] }, "size": { "type": "integer", "description": "File size", "examples": [ 14848 ] }, "is_link_only": { "type": "boolean", "description": "True if file is hosted somewhere else", "examples": [ false ] }, "download_url": { "type": "string", "description": "Url for file download", "format": "url", "examples": [ "https://ndownloader.figshare.com/files/3000002" ] }, "supplied_md5": { "type": "string", "description": "File supplied md5", "examples": [ "043a51806d646e88cafbf19e7b82846f" ] }, "computed_md5": { "type": "string", "description": "File computed md5", "examples": [ "043a51806d646e88cafbf19e7b82846f" ] }, "mimetype": { "type": "string", "description": "MIME Type of the file, it defaults to an empty string", "examples": [ "application/pdf" ] } }, "x-tag": "common" }