{
  "$id": "https://dify.ai/schemas/v1/file.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "version": "1.0.0",
  "type": "object",
  "title": "File",
  "description": "Schema for file objects (v1)",
  "properties": {
    "name": {
      "type": "string",
      "description": "file name"
    },
    "size": {
      "type": "number",
      "description": "file size"
    },
    "extension": {
      "type": "string",
      "description": "file extension"
    },
    "type": {
      "type": "string",
      "description": "file type"
    },
    "mime_type": {
      "type": "string",
      "description": "file mime type"
    },
    "transfer_method": {
      "type": "string",
      "description": "file transfer method"
    },
    "url": {
      "type": "string",
      "description": "file url"
    },
    "related_id": {
      "type": "string",
      "description": "file related id"
    }
  },
  "required": ["name"]
}