{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crevio-co/json-schema/crevio-co-list-response-deployment-schema.json",
  "title": "ListResponse_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/ListResponse_Deployment",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "list"
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Deployment"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "url"
  ],
  "$defs": {
    "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"
      ]
    }
  }
}