{
  "$id": "https://opendatafabric.org/schemas/flows/v1alpha1/FlowRunSpec",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Defines a set of tasks to be executed in a sequence.",
  "type": "object",
  "required": [
    "tasks"
  ],
  "properties": {
    "target": {
      "$ref": "https://opendatafabric.org/schemas/resources/v1alpha1/ResourceHandle",
      "unevaluatedProperties": false,
      "description": "Defines the default target resources on which tasks will be performed."
    },
    "serviceAccount": {
      "$ref": "https://opendatafabric.org/schemas/auth/v1alpha1/PrincipalHandle",
      "unevaluatedProperties": false,
      "description": "Service account whose permissions the tasks of this run execute with. Must be an account of service account type. A run created by the flow controller copies it from the `Flow`."
    },
    "tasks": {
      "type": "array",
      "items": {
        "$ref": "https://opendatafabric.org/schemas/tasks/v1alpha1/TaskSpec",
        "unevaluatedProperties": false
      },
      "description": "List of tasks to run consecutively."
    }
  }
}
