{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "http://zenodo.org/schemas/records/file-v1.0.0.json",
    "properties": {
        "_buckets": {
            "type": "object",
            "properties": {
                "deposit": {
                    "description": "UUID of the deposit bucket.",
                    "type": "string"
                },
                "record": {
                    "description": "UUID of the record bucket.",
                    "type": "string"
                },
                "extra_formats": {
                    "description": "UUID of the extra formats bucket.",
                    "type": "string"
                }
            }
        },
        "_files": {
            "description": "List of files attached to the record.",
            "items": {
                "description": "Describes the information of a single file in the record.",
                "properties": {
                    "bucket": {
                        "description": "UUID of the bucket to which this file is assigned.",
                        "type": "string"
                    },
                    "checksum": {
                        "description": "Checksum the file. Starts with '<algorithm>:' prefix, e.g.: 'md5:1234abcd...'",
                        "type": "string"
                    },
                    "file_id": {
                        "description": "UUID of the FileInstance object.",
                        "type": "string"
                    },
                    "key": {
                        "description": "Key (filename) of the file.",
                        "type": "string"
                    },
                    "previewer": {
                        "description": "Identifier for previewer needed to preview this file.",
                        "type": "string"
                    },
                    "size": {
                        "description": "Size of the file in bytes.",
                        "type": "integer"
                    },
                    "type": {
                        "description": "File type extension.",
                        "type": "string"
                    },
                    "version_id": {
                        "description": "UUID of the ObjectVersion object.",
                        "type": "string"
                    }
                },
                "required": [
                    "bucket",
                    "checksum",
                    "file_id",
                    "key",
                    "size",
                    "type",
                    "version_id"
                ],
                "title": "File schema.",
                "type": "object"
            },
            "type": "array"
        }
    },
    "title": "Zenodo Files Schema v1.0.0",
    "type": "object"
}