{
  "lexicon": 1,
  "id": "sh.tangled.ci.getPipeline",
  "defs": {
    "main": {
      "type": "query",
      "parameters": {
        "type": "params",
        "required": ["pipeline"],
        "properties": {
          "pipeline": {
            "type": "string",
            "format": "tid",
            "description": "Spindle-local pipeline id"
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "ref",
          "ref": "sh.tangled.ci.defs#pipeline"
        }
      },
      "errors": [
        {
          "name": "PipelineNotFound",
          "description": "Pipeline not found"
        },
        {
          "name": "InvalidRequest",
          "description": "Invalid request parameters"
        }
      ]
    }
  }
}
