{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/derive-to/json-schema/derive-to-asset-ref-schema.json",
  "title": "AssetRef",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/derive-to-assets-api-openapi.yml#/components/schemas/AssetRef",
  "type": "object",
  "properties": {
    "key": {
      "type": "string",
      "description": "The blob hash (content-addressed storage key)"
    },
    "url": {
      "type": "string",
      "description": "A permanent public URL for these bytes — embed it in any artifact's content"
    },
    "ref": {
      "type": "string",
      "description": "The exact \"asset:<hash>\" string to drop into a publish files map"
    },
    "type": {
      "type": "string",
      "enum": [
        "image/png",
        "image/jpeg",
        "image/gif",
        "image/webp",
        "font/woff2",
        "font/woff"
      ],
      "description": "The sniffed MIME type (PNG, JPEG, GIF, WebP, WOFF2, or WOFF)"
    },
    "size": {
      "type": "number",
      "description": "The asset's size in bytes"
    }
  },
  "required": [
    "key",
    "url",
    "ref",
    "type",
    "size"
  ]
}