{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/queue/v1/artifact-response.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "Information about an artifact\n",
  "properties": {
    "contentLength": {
      "description": "Size of the artifact content in bytes, if reported by the worker.\nThis value is null if the worker did not report the size.\n",
      "minimum": 0,
      "title": "Content-Length",
      "type": "integer"
    },
    "contentType": {
      "description": "Expected content-type of the artifact.  This is informational only:\nit is suitable for use to choose an icon for the artifact, for example.\nThe accurate content-type of the artifact can only be determined by\ndownloading it.\n",
      "maxLength": 255,
      "title": "Content-Type",
      "type": "string"
    },
    "expires": {
      "description": "Date and time after which the artifact created will be automatically\ndeleted by the queue.\n",
      "format": "date-time",
      "title": "Artifact Expiration",
      "type": "string"
    },
    "name": {
      "description": "Name of the artifact that was created, this is useful if you want to\nattempt to fetch the artifact.\n",
      "maxLength": 1024,
      "title": "Artifact Name",
      "type": "string"
    },
    "storageType": {
      "description": "This is the `storageType` for the request that was used to create\nthe artifact.\n",
      "enum": [
        "s3",
        "object",
        "reference",
        "link",
        "error"
      ],
      "title": "Artifact Storage-Type",
      "type": "string"
    }
  },
  "required": [
    "storageType",
    "name",
    "expires",
    "contentType"
  ],
  "title": "Artifact",
  "type": "object"
}