{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crevio-co/json-schema/crevio-co-deployment-schema.json",
  "title": "Deployment",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crevio-co-deployments-api-openapi.yml#/components/schemas/Deployment",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "object": {
      "type": "string"
    },
    "site": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "building",
        "live",
        "failed",
        "superseded",
        "unpublished"
      ]
    },
    "commit_sha": {
      "type": [
        "string",
        "null"
      ]
    },
    "is_live": {
      "type": "boolean"
    },
    "url": {
      "type": [
        "string",
        "null"
      ]
    },
    "triggered_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "error_message": {
      "type": [
        "string",
        "null"
      ]
    },
    "db_bookmark": {
      "type": [
        "string",
        "null"
      ]
    },
    "current_stage": {
      "type": [
        "string",
        "null"
      ]
    },
    "stages": {
      "type": "array"
    },
    "duration_seconds": {
      "type": [
        "number",
        "null"
      ]
    },
    "elapsed_seconds": {
      "type": [
        "number",
        "null"
      ]
    },
    "started_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "finished_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "object",
    "site",
    "status",
    "commit_sha",
    "is_live",
    "url",
    "triggered_by",
    "error_message",
    "db_bookmark",
    "current_stage",
    "stages",
    "duration_seconds",
    "elapsed_seconds",
    "started_at",
    "finished_at",
    "created_at"
  ]
}