{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/continuous-delivery-foundation/json-schema/continuous-delivery-foundation-model53-schema.json",
  "title": "Model53",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/continuous-delivery-foundation-builds-api-openapi.yml#/components/schemas/Model53",
  "type": "object",
  "properties": {
    "jobId": {
      "type": "integer",
      "description": "Identifier of the parent job",
      "x-constraint": {
        "sign": "positive"
      }
    },
    "meta": {
      "$ref": "#/$defs/meta"
    },
    "stats": {
      "$ref": "#/$defs/stats"
    }
  },
  "required": [
    "jobId"
  ],
  "$defs": {
    "meta": {
      "type": "object",
      "description": "Key=>Value information from the build itself",
      "default": {}
    },
    "stats": {
      "type": "object",
      "description": "Stats for this build",
      "properties": {
        "queueEnterTime": {
          "type": "string",
          "description": "When this build enters queue",
          "x-format": {
            "isoDate": true
          }
        },
        "blockedStartTime": {
          "type": "string",
          "description": "When this build is blocked",
          "x-format": {
            "isoDate": true
          }
        },
        "imagePullStartTime": {
          "type": "string",
          "description": "When this build starts pulling image",
          "x-format": {
            "isoDate": true
          }
        },
        "hostname": {
          "type": "string",
          "description": "Where this build is run"
        }
      }
    }
  }
}