{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/index/v1/indexed-task-response.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "Representation of an indexed task.\n",
  "properties": {
    "data": {
      "description": "Data that was reported with the task. This is an arbitrary JSON object.\n",
      "title": "Task Specific Data",
      "type": "object"
    },
    "expires": {
      "description": "Date at which this entry expires from the task index.\n",
      "format": "date-time",
      "title": "Expiration",
      "type": "string"
    },
    "namespace": {
      "description": "Namespace of the indexed task, used to find the indexed task in the index.\n",
      "maxLength": 255,
      "title": "Namespace",
      "type": "string"
    },
    "rank": {
      "description": "If multiple tasks are indexed with the same `namespace` the task with the\nhighest `rank` will be stored and returned in later requests. If two tasks\nhas the same `rank` the latest task will be stored.\n",
      "title": "Rank",
      "type": "number"
    },
    "taskId": {
      "description": "Unique task identifier, this is UUID encoded as\n[URL-safe base64](http://tools.ietf.org/html/rfc4648#section-5) and\nstripped of `=` padding.\n",
      "pattern": "^[A-Za-z0-9_-]{8}[Q-T][A-Za-z0-9_-][CGKOSWaeimquy26-][A-Za-z0-9_-]{10}[AQgw]$",
      "title": "Task Identifier",
      "type": "string"
    }
  },
  "required": [
    "namespace",
    "taskId",
    "rank",
    "data",
    "expires"
  ],
  "title": "Indexed Task Response",
  "type": "object"
}