{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-codepipeline/refs/heads/main/json-structure/amazon-codepipeline-pipeline-structure.json",
  "name": "Pipeline",
  "description": "Pipeline schema from Amazon CodePipeline",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the pipeline."
    },
    "roleArn": {
      "type": "string",
      "description": "The ARN of the IAM role used by the pipeline."
    },
    "stages": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StageDeclaration"
      }
    },
    "version": {
      "type": "int32",
      "description": "The version number of the pipeline."
    }
  }
}