{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/file-storage-api-file-schema.json",
  "title": "File",
  "description": "A file object from a connected file storage platform.",
  "type": "object",
  "properties": {
    "id": { "type": "string", "format": "uuid" },
    "remote_id": { "type": "string" },
    "name": { "type": "string", "description": "File name." },
    "file_url": { "type": "string", "format": "uri" },
    "file_thumbnail_url": { "type": "string", "format": "uri" },
    "size": { "type": "integer", "description": "File size in bytes." },
    "mime_type": { "type": "string" },
    "description": { "type": "string" },
    "folder": { "type": "string", "format": "uuid" },
    "drive": { "type": "string", "format": "uuid" },
    "remote_was_deleted": { "type": "boolean" },
    "created_at": { "type": "string", "format": "date-time" },
    "modified_at": { "type": "string", "format": "date-time" }
  }
}
