{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/seqbench-com/json-schema/seqbench-com-workflow-result-schema.json",
  "title": "WorkflowResult",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/seqbench-com-openapi.json#/components/schemas/WorkflowResult",
  "type": "object",
  "properties": {
    "steps": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "tool": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        }
      }
    },
    "count": {
      "type": "integer"
    },
    "capped": {
      "type": "boolean"
    },
    "limit": {
      "type": "integer",
      "description": "Maximum records per call (200)."
    },
    "columns": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Flattened \"<step>·<tool>·<key>\" column headers."
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "errors": {
      "type": "integer"
    },
    "provenance": {
      "$ref": "#/$defs/Provenance"
    }
  },
  "required": [
    "steps",
    "count",
    "capped",
    "limit",
    "columns",
    "rows",
    "errors",
    "provenance"
  ],
  "$defs": {
    "Provenance": {
      "type": "object",
      "properties": {
        "apiVersion": {
          "type": "string"
        },
        "tool": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          ],
          "description": "Tool slug, or an array of slugs (one per step) for a workflow."
        },
        "generatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "ISO 8601 timestamp of when the result was generated."
        }
      },
      "required": [
        "apiVersion",
        "tool",
        "generatedAt"
      ]
    }
  }
}