Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.DataFactory to add versi…
Browse files Browse the repository at this point in the history
…on stable/2018-06-01 (Azure#17189)

* Add FailActivity in swagger Pipeline.json for Azure Data Factory

* Update description of FailActivity

* Adding 'type:object' to FailActivity and FailActivityTypeProperties
  • Loading branch information
HugoLabraMSFT authored Jan 6, 2022
1 parent 46a7b5a commit c00793a
Showing 1 changed file with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6726,6 +6726,44 @@
"waitTimeInSeconds"
]
},
"FailActivity": {
"x-ms-discriminator-value": "Fail",
"type": "object",
"description": "This activity will fail within its own scope and output a custom error message and error code. The error message and code can provided either as a string literal or as an expression that can be evaluated to a string at runtime. The activity scope can be the whole pipeline or a control activity (e.g. foreach, switch, until), if the fail activity is contained in it.",
"allOf": [
{
"$ref": "#/definitions/ControlActivity"
}
],
"properties": {
"typeProperties": {
"description": "Fail activity properties.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/FailActivityTypeProperties"
}
},
"required": [
"typeProperties"
]
},
"FailActivityTypeProperties": {
"description": "Fail activity properties.",
"type": "object",
"properties": {
"message": {
"description": "The error message that surfaced in the Fail activity. It can be dynamic content that's evaluated to a non empty/blank string at runtime. Type: string (or Expression with resultType string).",
"type": "object"
},
"errorCode": {
"description": "The error code that categorizes the error type of the Fail activity. It can be dynamic content that's evaluated to a non empty/blank string at runtime. Type: string (or Expression with resultType string).",
"type": "object"
}
},
"required": [
"message",
"errorCode"
]
},
"UntilActivity": {
"x-ms-discriminator-value": "Until",
"description": "This activity executes inner activities until the specified boolean expression results to true or timeout is reached, whichever is earlier.",
Expand Down

0 comments on commit c00793a

Please sign in to comment.