Skip to content

Commit 5c99e4e

Browse files
jeffmcco-msftJoshLove-msft
authored andcommitted
Adjust 202 response of UsageAggregates_List to match current behavior (Azure#23172)
1 parent 99fd7b9 commit 5c99e4e

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

specification/commerce/resource-manager/Microsoft.Commerce/preview/2015-06-01-preview/commerce.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"202": {
9797
"description": "Response indicating that a request has been accepted for processing. However, the processing has not been completed.",
9898
"schema": {
99-
"$ref": "#/definitions/ErrorResponse"
99+
"$ref": "#/definitions/ErrorObjectResponse"
100100
}
101101
},
102102
"default": {
@@ -484,6 +484,16 @@
484484
"type": "string"
485485
}
486486
}
487+
},
488+
"ErrorObjectResponse": {
489+
"description": "Describes the format of Error response with a wrapper object",
490+
"type": "object",
491+
"properties": {
492+
"error": {
493+
"description": "Wrapper object for error information",
494+
"$ref": "#/definitions/ErrorResponse"
495+
}
496+
}
487497
}
488498
},
489499
"parameters": {

specification/commerce/resource-manager/Microsoft.Commerce/preview/2015-06-01-preview/examples/GetUsageAggregatesList.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@
3434
},
3535
"202": {
3636
"body": {
37-
"code": "aaaaaaaaaaaaaaaaaaaaaa",
38-
"message": "aaaaaaaaaaaaaaaaaaaa"
37+
"error": {
38+
"code": "aaaaaaaaaaaaaaaaaaaaaa",
39+
"message": "aaaaaaaaaaaaaaaaaaaa"
40+
}
3941
}
4042
}
4143
}

0 commit comments

Comments
 (0)