Skip to content

Commit 80a4872

Browse files
MasterRyd3lJames Duan
and
James Duan
authored
fix incorrect error property in async-operationstatus response (#26436)
Co-authored-by: James Duan <[email protected]>
1 parent 6963bf0 commit 80a4872

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@
8989
"OperationStatus": {
9090
"description": "The status of operation.",
9191
"type": "object",
92+
"allOf": [
93+
{
94+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
95+
}
96+
],
9297
"properties": {
9398
"id": {
9499
"type": "string",
@@ -109,11 +114,6 @@
109114
"status": {
110115
"type": "string",
111116
"description": "The status of the operation."
112-
},
113-
"error": {
114-
"type": "object",
115-
"description": "The error detail of the operation if any.",
116-
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
117117
}
118118
}
119119
}

specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-10-27-preview/operationStatuses.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@
8989
"OperationStatus": {
9090
"description": "The status of operation.",
9191
"type": "object",
92+
"allOf": [
93+
{
94+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
95+
}
96+
],
9297
"properties": {
9398
"id": {
9499
"type": "string",
@@ -109,11 +114,6 @@
109114
"status": {
110115
"type": "string",
111116
"description": "The status of the operation."
112-
},
113-
"error": {
114-
"type": "object",
115-
"description": "The error detail of the operation if any.",
116-
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
117117
}
118118
}
119119
}

specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/operationStatuses.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@
8989
"OperationStatus": {
9090
"description": "The status of operation.",
9191
"type": "object",
92+
"allOf": [
93+
{
94+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
95+
}
96+
],
9297
"properties": {
9398
"id": {
9499
"type": "string",
@@ -109,11 +114,6 @@
109114
"status": {
110115
"type": "string",
111116
"description": "The status of the operation."
112-
},
113-
"error": {
114-
"type": "object",
115-
"description": "The error detail of the operation if any.",
116-
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
117117
}
118118
}
119119
}

0 commit comments

Comments
 (0)