{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Image",
  "title": "Image",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique ID of this image."
    },
    "label": {
      "type": "string",
      "description": "The label of this image."
    },
    "description": {
      "type": "string",
      "description": "A description of this image."
    },
    "type": {
      "type": "string",
      "enum": [
        "manual",
        "automatic"
      ],
      "description": "Whether this is a manual or automatic image."
    },
    "is_public": {
      "type": "boolean",
      "description": "Whether this image is publicly available."
    },
    "size": {
      "type": "integer",
      "description": "The size of this image in MB."
    },
    "status": {
      "type": "string",
      "enum": [
        "available",
        "creating",
        "pending_upload"
      ],
      "description": "The status of this image."
    },
    "vendor": {
      "type": "string",
      "description": "The upstream distribution vendor."
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "When this image was created."
    },
    "updated": {
      "type": "string",
      "format": "date-time",
      "description": "When this image was last updated."
    },
    "expiry": {
      "type": "string",
      "format": "date-time",
      "description": "When this image expires. Null for distribution images."
    }
  }
}