{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/broad-institute/json-schema/broad-institute-workflow-query-response-schema.json",
  "title": "WorkflowQueryResponse",
  "description": "Response to a workflow query",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/broad-institute-cromiam-workflows-for-job-manager-api-openapi.yml#/components/schemas/WorkflowQueryResponse",
  "required": [
    "results"
  ],
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WorkflowQueryResult"
      }
    }
  },
  "$defs": {
    "WorkflowQueryResult": {
      "required": [
        "id",
        "name",
        "start",
        "status"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Workflow ID"
        },
        "name": {
          "type": "string",
          "description": "Workflow name"
        },
        "status": {
          "type": "string",
          "description": "Workflow status"
        },
        "start": {
          "type": "string",
          "description": "Workflow start datetime",
          "format": "date-time"
        },
        "end": {
          "type": "string",
          "description": "Workflow end datetime",
          "format": "date-time"
        }
      },
      "description": "Result for an individual workflow returned by a workflow query"
    }
  }
}