{
  "$id": "https://intentschema.org/common/blob-ref/v1.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "BlobRef",
  "description": "Reference to a blob by URL and content hash. Executors fetch the URL and verify sha256 before use.",
  "type": "object",
  "required": [
    "url",
    "sha256"
  ],
  "properties": {
    "url": {
      "type": "string",
      "format": "uri"
    },
    "sha256": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "filename": {
      "type": "string"
    },
    "mime_type": {
      "type": "string"
    },
    "size": {
      "type": "integer",
      "minimum": 0
    }
  }
}
