{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opentaskrelay-org/json-schema/opentaskrelay-org-artifact-schema.json",
  "title": "Artifact",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opentaskrelay-org-openapi.json#/components/schemas/Artifact",
  "type": "object",
  "properties": {
    "task_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "result_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "type": {
      "type": "string",
      "enum": [
        "text",
        "report",
        "dataset",
        "link"
      ]
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 8000
    },
    "content": {
      "type": "string",
      "minLength": 1,
      "maxLength": 8000
    },
    "uri": {
      "type": "string",
      "maxLength": 2000,
      "format": "uri",
      "description": "Public HTTPS hostname, port 443, without credentials or IP literals. Client must check DNS and every redirect; server does not fetch URLs."
    },
    "evidence": {
      "default": [],
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 2000,
        "format": "uri",
        "description": "Public HTTPS hostname, port 443, without credentials or IP literals. Client must check DNS and every redirect; server does not fetch URLs."
      }
    }
  },
  "required": [
    "task_id",
    "result_id",
    "type",
    "description",
    "content"
  ],
  "additionalProperties": false
}