{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-purview/json-schema/microsoft-purview-workflow-list-schema.json",
  "title": "WorkflowList",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-purview-workflows-api-openapi.yml#/components/schemas/WorkflowList",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Workflow"
      }
    },
    "nextLink": {
      "type": "string"
    }
  },
  "$defs": {
    "Workflow": {
      "type": "object",
      "description": "A workflow definition",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "triggers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WorkflowTrigger"
          }
        },
        "name": {
          "type": "string"
        },
        "isEnabled": {
          "type": "boolean"
        },
        "description": {
          "type": "string"
        },
        "actionDag": {
          "type": "object",
          "description": "The directed acyclic graph of actions"
        }
      }
    },
    "WorkflowTrigger": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "when_term_creation_is_requested",
            "when_term_deletion_is_requested",
            "when_term_update_is_requested",
            "when_data_access_grant_is_requested",
            "when_asset_update_is_requested"
          ]
        },
        "underGlossaryHierarchy": {
          "type": "string"
        },
        "underCollection": {
          "type": "string"
        }
      }
    }
  }
}