{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-functions/json-schema/microsoft-azure-functions-workflow-run-action-repetition-definition-collection-schema.json",
  "title": "WorkflowRunActionRepetitionDefinitionCollection",
  "description": "A collection of workflow run action repetitions.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-functions-workflowrunactions-api-openapi.yml#/components/schemas/WorkflowRunActionRepetitionDefinitionCollection",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The WorkflowRunActionRepetitionDefinition items on this page",
      "items": {
        "$ref": "#/$defs/WorkflowRunActionRepetitionDefinition"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "ContentHash": {
      "type": "object",
      "description": "The content hash.",
      "properties": {
        "algorithm": {
          "type": "string",
          "description": "The algorithm of the content hash."
        },
        "value": {
          "type": "string",
          "description": "The value of the content hash."
        }
      }
    },
    "ContentLink": {
      "type": "object",
      "description": "The content link.",
      "properties": {
        "uri": {
          "type": "string",
          "description": "The content link URI."
        },
        "contentVersion": {
          "type": "string",
          "description": "The content version.",
          "readOnly": true
        },
        "contentSize": {
          "type": "integer",
          "format": "int64",
          "description": "The content size.",
          "readOnly": true
        },
        "contentHash": {
          "$ref": "#/$defs/ContentHash",
          "description": "The content hash.",
          "readOnly": true
        },
        "metadata": {
          "description": "The metadata.",
          "readOnly": true
        }
      }
    },
    "ErrorProperties": {
      "type": "object",
      "description": "Error properties indicate why the Logic service was not able to process the incoming request. The reason is provided in the error message.",
      "properties": {
        "code": {
          "type": "string",
          "description": "Error code."
        },
        "message": {
          "type": "string",
          "description": "Error message indicating why the operation failed."
        }
      }
    },
    "ErrorResponse": {
      "type": "object",
      "description": "Error response indicates Logic service is not able to process the incoming request. The error property contains the error details.",
      "properties": {
        "error": {
          "$ref": "#/$defs/ErrorProperties",
          "description": "The error properties."
        }
      }
    },
    "OperationResult": {
      "type": "object",
      "description": "The operation result definition.",
      "properties": {
        "trackingId": {
          "type": "string",
          "description": "Gets the tracking id.",
          "readOnly": true
        },
        "inputs": {
          "description": "Gets the inputs.",
          "readOnly": true
        },
        "inputsLink": {
          "$ref": "#/$defs/ContentLink",
          "description": "Gets the link to inputs.",
          "readOnly": true
        },
        "outputs": {
          "description": "Gets the outputs.",
          "readOnly": true
        },
        "outputsLink": {
          "$ref": "#/$defs/ContentLink",
          "description": "Gets the link to outputs.",
          "readOnly": true
        },
        "trackedProperties": {
          "description": "Gets the tracked properties.",
          "readOnly": true
        },
        "retryHistory": {
          "type": "array",
          "description": "Gets the retry histories.",
          "items": {
            "$ref": "#/$defs/RetryHistory"
          },
          "x-ms-identifiers": []
        },
        "iterationCount": {
          "type": "integer",
          "format": "int32"
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/OperationResultProperties"
        }
      ]
    },
    "OperationResultProperties": {
      "type": "object",
      "description": "The run operation result properties.",
      "properties": {
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "The start time of the workflow scope repetition."
        },
        "endTime": {
          "type": "string",
          "format": "date-time",
          "description": "The end time of the workflow scope repetition."
        },
        "correlation": {
          "$ref": "#/$defs/RunActionCorrelation",
          "description": "The correlation properties."
        },
        "status": {
          "$ref": "#/$defs/WorkflowStatus",
          "description": "The status of the workflow scope repetition."
        },
        "code": {
          "type": "string",
          "description": "The workflow scope repetition code."
        },
        "error": {
          "description": "Anything"
        }
      }
    },
    "RepetitionIndex": {
      "type": "object",
      "description": "The workflow run action repetition index.",
      "properties": {
        "scopeName": {
          "type": "string",
          "description": "The scope."
        },
        "itemIndex": {
          "type": "integer",
          "format": "int32",
          "description": "The index."
        }
      },
      "required": [
        "itemIndex"
      ]
    },
    "RetryHistory": {
      "type": "object",
      "description": "The retry history.",
      "properties": {
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "Gets the start time."
        },
        "endTime": {
          "type": "string",
          "format": "date-time",
          "description": "Gets the end time."
        },
        "code": {
          "type": "string",
          "description": "Gets the status code."
        },
        "clientRequestId": {
          "type": "string",
          "description": "Gets the client request Id."
        },
        "serviceRequestId": {
          "type": "string",
          "description": "Gets the service request Id."
        },
        "error": {
          "$ref": "#/$defs/ErrorResponse",
          "description": "Gets the error response."
        }
      }
    },
    "RunActionCorrelation": {
      "type": "object",
      "description": "The workflow run action correlation properties.",
      "properties": {
        "actionTrackingId": {
          "type": "string",
          "description": "The action tracking identifier."
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/RunCorrelation"
        }
      ]
    },
    "RunCorrelation": {
      "type": "object",
      "description": "The correlation properties.",
      "properties": {
        "clientTrackingId": {
          "type": "string",
          "description": "The client tracking identifier."
        },
        "clientKeywords": {
          "type": "array",
          "description": "The client keywords.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "WorkflowRunActionRepetitionDefinition": {
      "type": "object",
      "description": "The workflow run action repetition definition.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/WorkflowRunActionRepetitionProperties",
          "description": "The workflow run action repetition properties definition.",
          "x-ms-client-flatten": true
        }
      },
      "required": [
        "properties"
      ],
      "allOf": [
        {
          "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource"
        }
      ]
    },
    "WorkflowRunActionRepetitionProperties": {
      "type": "object",
      "description": "The workflow run action repetition properties definition.",
      "properties": {
        "repetitionIndexes": {
          "type": "array",
          "description": "The repetition indexes.",
          "items": {
            "$ref": "#/$defs/RepetitionIndex"
          },
          "x-ms-identifiers": [
            "itemIndex"
          ]
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/OperationResult"
        }
      ]
    },
    "WorkflowStatus": {
      "type": "string",
      "description": "The workflow status.",
      "enum": [
        "NotSpecified",
        "Paused",
        "Running",
        "Waiting",
        "Succeeded",
        "Skipped",
        "Suspended",
        "Cancelled",
        "Failed",
        "Faulted",
        "TimedOut",
        "Aborted",
        "Ignored"
      ],
      "x-ms-enum": {
        "name": "WorkflowStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "NotSpecified",
            "value": "NotSpecified"
          },
          {
            "name": "Paused",
            "value": "Paused"
          },
          {
            "name": "Running",
            "value": "Running"
          },
          {
            "name": "Waiting",
            "value": "Waiting"
          },
          {
            "name": "Succeeded",
            "value": "Succeeded"
          },
          {
            "name": "Skipped",
            "value": "Skipped"
          },
          {
            "name": "Suspended",
            "value": "Suspended"
          },
          {
            "name": "Cancelled",
            "value": "Cancelled"
          },
          {
            "name": "Failed",
            "value": "Failed"
          },
          {
            "name": "Faulted",
            "value": "Faulted"
          },
          {
            "name": "TimedOut",
            "value": "TimedOut"
          },
          {
            "name": "Aborted",
            "value": "Aborted"
          },
          {
            "name": "Ignored",
            "value": "Ignored"
          }
        ]
      }
    }
  }
}