{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-asset-2-schema.json",
  "title": "Asset_2",
  "description": "A digital asset in the CMP library",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-assets-api-openapi.yml#/components/schemas/Asset_2",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the asset"
    },
    "title": {
      "type": "string",
      "description": "Title of the asset"
    },
    "description": {
      "type": "string",
      "description": "Description of the asset"
    },
    "type": {
      "type": "string",
      "description": "Type of the asset",
      "enum": [
        "image",
        "video",
        "raw_file"
      ]
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "URL to access the asset"
    },
    "thumbnail_url": {
      "type": "string",
      "format": "uri",
      "description": "URL for the asset thumbnail"
    },
    "file_name": {
      "type": "string",
      "description": "Original file name"
    },
    "file_size": {
      "type": "integer",
      "description": "File size in bytes"
    },
    "mime_type": {
      "type": "string",
      "description": "MIME type of the asset"
    },
    "labels": {
      "type": "array",
      "description": "Labels associated with the asset",
      "items": {
        "type": "string"
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the asset was created"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the asset was last updated"
    }
  }
}