diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json index 87b8f3200ab0..80e2420ea956 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-09-01-preview/operationStatuses.json @@ -89,6 +89,11 @@ "OperationStatus": { "description": "The status of operation.", "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + ], "properties": { "id": { "type": "string", @@ -109,11 +114,6 @@ "status": { "type": "string", "description": "The status of the operation." - }, - "error": { - "type": "object", - "description": "The error detail of the operation if any.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-10-27-preview/operationStatuses.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-10-27-preview/operationStatuses.json index dde2ea645634..d82fefad4301 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-10-27-preview/operationStatuses.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2023-10-27-preview/operationStatuses.json @@ -89,6 +89,11 @@ "OperationStatus": { "description": "The status of operation.", "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + ], "properties": { "id": { "type": "string", @@ -109,11 +114,6 @@ "status": { "type": "string", "description": "The status of the operation." - }, - "error": { - "type": "object", - "description": "The error detail of the operation if any.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/operationStatuses.json b/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/operationStatuses.json index da61e7addde3..a3f3fca8d56c 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/operationStatuses.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/operationStatuses.json @@ -89,6 +89,11 @@ "OperationStatus": { "description": "The status of operation.", "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + ], "properties": { "id": { "type": "string", @@ -109,11 +114,6 @@ "status": { "type": "string", "description": "The status of the operation." - }, - "error": { - "type": "object", - "description": "The error detail of the operation if any.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }