{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/index/v1/list-tasks-response.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "Representation of an indexed task.\n",
  "properties": {
    "continuationToken": {
      "description": "A continuation token is returned if there are more results than listed\nhere. You can optionally provide the token in the request payload to\nload the additional results.\n",
      "title": "Continuation Token",
      "type": "string"
    },
    "tasks": {
      "description": "List of tasks.\n",
      "items": {
        "additionalProperties": false,
        "description": "Representation of a task.\n",
        "properties": {
          "data": {
            "description": "Data that was reported with the task. This is an arbitrary JSON\nobject.\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": "Index path of the task.\n",
            "maxLength": 255,
            "title": "Namespace",
            "type": "string"
          },
          "rank": {
            "description": "If multiple tasks are indexed with the same `namespace` the task\nwith the highest `rank` will be stored and returned in later\nrequests. If two tasks has the same `rank` the latest task will be\nstored.\n",
            "title": "Rank",
            "type": "number"
          },
          "taskId": {
            "description": "Unique task identifier for the task currently indexed at `namespace`.\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": "Task",
        "type": "object"
      },
      "title": "Tasks",
      "type": "array",
      "uniqueItems": true
    }
  },
  "required": [
    "tasks"
  ],
  "title": "List Tasks Response",
  "type": "object"
}