{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dropto-run/json-schema/dropto-run-deploy-detail-schema.json",
  "title": "DeployDetail",
  "description": "Response of `GET /sites/{siteId}/deploys/{deployId}`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dropto-run-deploys-api-openapi.yml#/components/schemas/DeployDetail",
  "properties": {
    "completedAt": {
      "description": "When it reached a terminal state, or null while in flight.",
      "format": "date-time",
      "type": [
        "null",
        "string"
      ]
    },
    "createdAt": {
      "description": "When it was prepared.",
      "format": "date-time",
      "type": "string"
    },
    "deployId": {
      "description": "ULID of the deploy.",
      "type": "string"
    },
    "error": {
      "description": "Why it failed, when it did.",
      "type": [
        "null",
        "string"
      ]
    },
    "fileCount": {
      "description": "Files it holds.",
      "format": "int32",
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ]
    },
    "isLive": {
      "description": "Whether this is the deploy currently being served.",
      "type": "boolean"
    },
    "siteId": {
      "description": "ULID of its site.",
      "type": "string"
    },
    "status": {
      "description": "Lowercase status name.",
      "type": "string"
    },
    "totalBytes": {
      "description": "Its size.",
      "format": "int64",
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ]
    },
    "url": {
      "description": "The site's URL, present only when this deploy is live.",
      "type": [
        "null",
        "string"
      ]
    }
  },
  "required": [
    "deployId",
    "siteId",
    "status",
    "isLive",
    "fileCount",
    "totalBytes",
    "createdAt",
    "completedAt",
    "error",
    "url"
  ],
  "type": "object"
}