Skip to content

Commit 06403e7

Browse files
authored
remove wrong default error response (#8923)
Have discussed the recommendation of providing Default with correct error schema in order to surface error message to customer. Without it, if the error message format differs from standard cloud error, user of SDK would only get a generic CloudException with error status code but no detailed error message. Adding default with schema LATER would be a SDK breaking change. Monitor team indicated understanding of the issue and with urgent JEDI requirement and opt for this approach.
1 parent 7acdc57 commit 06403e7

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

specification/monitor/resource-manager/Microsoft.Insights/preview/2019-10-17-preview/privateLinkScopes_API.json

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@
4747
}
4848
],
4949
"responses": {
50-
"default": {
51-
"description": "Error response describing why the operation failed.",
52-
"schema": {
53-
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
54-
}
55-
},
5650
"200": {
5751
"description": "A list containing 0 or more Azure Monitor PrivateLinkScope definitions.",
5852
"schema": {
@@ -86,12 +80,6 @@
8680
}
8781
],
8882
"responses": {
89-
"default": {
90-
"description": "Error response describing why the operation failed.",
91-
"schema": {
92-
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
93-
}
94-
},
9583
"200": {
9684
"description": "A list containing 0 or more Azure Monitor PrivateLinkScope definitions.",
9785
"schema": {
@@ -128,12 +116,6 @@
128116
}
129117
],
130118
"responses": {
131-
"default": {
132-
"description": "Error response describing why the operation failed.",
133-
"schema": {
134-
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
135-
}
136-
},
137119
"200": {
138120
"description": "Successful request when deleting a Azure Monitor PrivateLinkScope."
139121
},
@@ -169,12 +151,6 @@
169151
}
170152
],
171153
"responses": {
172-
"default": {
173-
"description": "Error response describing why the operation failed.",
174-
"schema": {
175-
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
176-
}
177-
},
178154
"200": {
179155
"description": "An Azure Monitor PrivateLinkScope definition.",
180156
"schema": {
@@ -215,12 +191,6 @@
215191
}
216192
],
217193
"responses": {
218-
"default": {
219-
"description": "Error response describing why the operation failed.",
220-
"schema": {
221-
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
222-
}
223-
},
224194
"200": {
225195
"description": "Successful request when creating or updating a Azure Monitor PrivateLinkScope. The updated PrivateLinkScope is returned.",
226196
"schema": {
@@ -264,12 +234,6 @@
264234
}
265235
],
266236
"responses": {
267-
"default": {
268-
"description": "Error response describing why the operation failed.",
269-
"schema": {
270-
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
271-
}
272-
},
273237
"200": {
274238
"description": "Updating the Azure Monitor PrivateLinkScope's tags was successful. PrivateLinkScope tags are updated and returned with the rest of the PrivateLinkScope's object properties.",
275239
"schema": {

0 commit comments

Comments
 (0)