{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/seqbench-com/json-schema/seqbench-com-workflow-request-schema.json",
  "title": "WorkflowRequest",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/seqbench-com-openapi.json#/components/schemas/WorkflowRequest",
  "type": "object",
  "properties": {
    "steps": {
      "type": "array",
      "minItems": 1,
      "maxItems": 8,
      "items": {
        "$ref": "#/$defs/WorkflowStep"
      }
    },
    "input": {
      "type": "string",
      "description": "Multi-FASTA text or one sequence per line."
    }
  },
  "required": [
    "steps",
    "input"
  ],
  "$defs": {
    "WorkflowStep": {
      "type": "object",
      "properties": {
        "tool": {
          "type": "string",
          "description": "A pipeline-capable tool slug."
        },
        "args": {
          "type": "object",
          "additionalProperties": true
        },
        "from": {
          "oneOf": [
            {
              "type": "integer",
              "description": "0-based index of an earlier step."
            },
            {
              "const": "initial",
              "description": "The original input record."
            }
          ],
          "description": "Source of this step's input. Defaults to the previous step."
        }
      },
      "required": [
        "tool"
      ]
    }
  }
}