{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/docupanda/json-schema/docupanda-workflow-schema.json",
  "title": "Workflow",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/docupanda-workflow-api-openapi.yml#/components/schemas/Workflow",
  "properties": {
    "workflowId": {
      "type": "string",
      "title": "Workflow ID",
      "description": "Unique identifier of the workflow."
    },
    "workflowContents": {
      "additionalProperties": true,
      "type": "object",
      "title": "Workflow Contents",
      "description": "The details of the workflow. Currently this will always be a dictionary with key being 'step' and value being StandardizeStep, StandardizeReviewStep, ClassifyStandardizeStep, SplitStandardizeStep, or SplitClassifyStandardizeStep."
    },
    "workflowTrigger": {
      "additionalProperties": true,
      "type": "object",
      "title": "Workflow Trigger",
      "description": "The trigger that activates the workflow."
    },
    "workflowName": {
      "type": "string",
      "title": "Workflow Name",
      "description": "Name of the workflow."
    },
    "timestamp": {
      "type": "string",
      "title": "Timestamp",
      "description": "Timestamp of the workflow creation."
    }
  },
  "type": "object",
  "required": [
    "workflowId",
    "workflowContents",
    "workflowTrigger"
  ]
}