{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asap-cool/json-schema/asap-cool-file-view-schema.json",
  "title": "FileView",
  "description": "Public projection of a stored file.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asap-cool-files-api-openapi.yml#/components/schemas/FileView",
  "type": "object",
  "required": [
    "id",
    "filename",
    "byte_size",
    "content_type",
    "sha256",
    "visibility",
    "tags",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "byte_size": {
      "type": "integer",
      "format": "int64",
      "description": "Stored size in bytes."
    },
    "content_type": {
      "type": "string",
      "description": "Media type of the stored bytes — the converted one when the upload was\ntranscoded, which may differ from what was sent."
    },
    "created_at": {
      "type": "string",
      "description": "RFC 3339 creation timestamp."
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional caption."
    },
    "filename": {
      "type": "string",
      "description": "Stored file name."
    },
    "folder_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Containing folder, or `null` at the library root."
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "File id."
    },
    "sha256": {
      "type": "string",
      "description": "Lowercase-hex SHA-256 of the bytes as uploaded (deduplication key)."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Free-form labels."
    },
    "updated_at": {
      "type": "string",
      "description": "RFC 3339 last-modification timestamp."
    },
    "visibility": {
      "type": "string",
      "description": "`private` or `link`."
    }
  }
}