{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/continuous-delivery-foundation/json-schema/continuous-delivery-foundation-model52-schema.json",
  "title": "Model52",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/continuous-delivery-foundation-templates-api-openapi.yml#/components/schemas/Model52",
  "type": "array",
  "items": {
    "$ref": "#/$defs/Model51"
  },
  "$defs": {
    "Model51": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Identifier of this pipeline",
          "x-constraint": {
            "sign": "positive"
          }
        },
        "name": {
          "type": "string"
        },
        "scmRepo": {
          "$ref": "#/$defs/SCM_Repository"
        },
        "lastRun": {
          "anyOf": [
            {
              "type": "string",
              "description": "When this event was created",
              "maxLength": 32,
              "x-format": {
                "isoDate": true
              }
            },
            {
              "type": [
                "string",
                "null"
              ]
            }
          ]
        },
        "admins": {
          "$ref": "#/$defs/admins"
        }
      },
      "required": [
        "id",
        "name",
        "scmRepo",
        "admins"
      ]
    },
    "SCM_Repository": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "branch": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "x-format": {
            "uri": true
          }
        },
        "private": {
          "type": "boolean"
        },
        "rootDir": {
          "type": "string",
          "description": "Root directory (relative to checkoutUrl)",
          "maxLength": 100
        }
      },
      "required": [
        "name",
        "branch",
        "url"
      ]
    },
    "admins": {
      "type": "object",
      "description": "Admins of this Pipeline"
    }
  }
}