{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/api-evangelist/appmixer/blob/main/json-schema/file.json",
  "title": "Appmixer File",
  "description": "A File represents a stored file in the Appmixer file management system, which can be used by flows and components.",
  "type": "object",
  "properties": {
    "fileId": {
      "type": "string",
      "description": "Unique identifier for the file."
    },
    "filename": {
      "type": "string",
      "description": "Original filename of the uploaded file."
    },
    "length": {
      "type": "integer",
      "description": "File size in bytes."
    },
    "contentType": {
      "type": "string",
      "description": "MIME type of the file."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the file was uploaded."
    }
  },
  "required": ["fileId"]
}
