Skip to content

Commit d7003cd

Browse files
committed
Revert CrpErrorDetails to use common type.
1 parent 2e3093a commit d7003cd

File tree

8 files changed

+25
-56
lines changed

8 files changed

+25
-56
lines changed

specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2015-12-01-preview/Compute.json

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"default": {
4343
"description": "Default Response.",
4444
"schema": {
45-
"$ref": "Compute.json#/definitions/CrpErrorDetails"
45+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
4646
}
4747
}
4848
},
@@ -105,37 +105,6 @@
105105
},
106106
"x-ms-azure-resource": true
107107
},
108-
"CrpErrorDetails": {
109-
"description": "Crp Error details.",
110-
"type": "object",
111-
"properties": {
112-
"error": {
113-
"description": "Object containing error details.",
114-
"$ref": "Compute.json#/definitions/CrpErrorDetailsInternal"
115-
}
116-
}
117-
},
118-
"CrpErrorDetailsInternal": {
119-
"description": "Crp Error details.",
120-
"type": "object",
121-
"properties": {
122-
"code": {
123-
"description": "The error code.",
124-
"type": "string",
125-
"readOnly": true
126-
},
127-
"message": {
128-
"description": "The error message.",
129-
"type": "string",
130-
"readOnly": true
131-
},
132-
"target": {
133-
"description": "The target of the particular error.",
134-
"type": "string",
135-
"readOnly": true
136-
}
137-
}
138-
},
139108
"ProvisioningState": {
140109
"description": "The provisioning state of the resource.",
141110
"enum": [

specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2015-12-01-preview/PlatformImages.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"default": {
5050
"description": "Default Response.",
5151
"schema": {
52-
"$ref": "Compute.json#/definitions/CrpErrorDetails"
52+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
5353
}
5454
}
5555
}
@@ -101,7 +101,7 @@
101101
"default": {
102102
"description": "Default Response.",
103103
"schema": {
104-
"$ref": "Compute.json#/definitions/CrpErrorDetails"
104+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
105105
}
106106
}
107107
}
@@ -166,7 +166,7 @@
166166
"default": {
167167
"description": "Default Response.",
168168
"schema": {
169-
"$ref": "Compute.json#/definitions/CrpErrorDetails"
169+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
170170
}
171171
}
172172
},
@@ -211,7 +211,7 @@
211211
"default": {
212212
"description": "Default Response.",
213213
"schema": {
214-
"$ref": "Compute.json#/definitions/CrpErrorDetails"
214+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
215215
}
216216
},
217217
"200": {

specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2015-12-01-preview/VMExtensions.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"default": {
5959
"description": "Default Response.",
6060
"schema": {
61-
"$ref": "Compute.json#/definitions/CrpErrorDetails"
61+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
6262
}
6363
}
6464
}
@@ -120,7 +120,7 @@
120120
"default": {
121121
"description": "Default Response.",
122122
"schema": {
123-
"$ref": "Compute.json#/definitions/CrpErrorDetails"
123+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
124124
}
125125
}
126126
}
@@ -170,7 +170,7 @@
170170
"default": {
171171
"description": "Default Response.",
172172
"schema": {
173-
"$ref": "Compute.json#/definitions/CrpErrorDetails"
173+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
174174
}
175175
}
176176
}
@@ -216,7 +216,7 @@
216216
"default": {
217217
"description": "Default Response.",
218218
"schema": {
219-
"$ref": "Compute.json#/definitions/CrpErrorDetails"
219+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
220220
}
221221
}
222222
}

specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2018-07-30-preview/DiskMigrationJobs.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"default": {
5353
"description": "Default Response.",
5454
"schema": {
55-
"$ref": "../2015-12-01-preview/Compute.json#/definitions/CrpErrorDetails"
55+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
5656
}
5757
}
5858
},
@@ -97,7 +97,7 @@
9797
"default": {
9898
"description": "Default Response.",
9999
"schema": {
100-
"$ref": "../2015-12-01-preview/Compute.json#/definitions/CrpErrorDetails"
100+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
101101
}
102102
}
103103
}
@@ -149,7 +149,7 @@
149149
"default": {
150150
"description": "Default Response.",
151151
"schema": {
152-
"$ref": "../2015-12-01-preview/Compute.json#/definitions/CrpErrorDetails"
152+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
153153
}
154154
}
155155
}
@@ -191,7 +191,7 @@
191191
"default": {
192192
"description": "Default Response.",
193193
"schema": {
194-
"$ref": "../2015-12-01-preview/Compute.json#/definitions/CrpErrorDetails"
194+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
195195
}
196196
}
197197
}

specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2018-07-30-preview/Disks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"default": {
7171
"description": "Default Response.",
7272
"schema": {
73-
"$ref": "../2015-12-01-preview/Compute.json#/definitions/CrpErrorDetails"
73+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
7474
}
7575
}
7676
},
@@ -115,7 +115,7 @@
115115
"default": {
116116
"description": "Default Response.",
117117
"schema": {
118-
"$ref": "../2015-12-01-preview/Compute.json#/definitions/CrpErrorDetails"
118+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
119119
}
120120
}
121121
}

specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/stable/2020-11-01/Features.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"default": {
5353
"description": "Default error response.",
5454
"schema": {
55-
"$ref": "../../preview/2015-12-01-preview/Compute.json#/definitions/CrpErrorDetails"
55+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
5656
}
5757
}
5858
}
@@ -98,7 +98,7 @@
9898
"default": {
9999
"description": "Default error response.",
100100
"schema": {
101-
"$ref": "../../preview/2015-12-01-preview/Compute.json#/definitions/CrpErrorDetails"
101+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
102102
}
103103
}
104104
},
@@ -150,7 +150,7 @@
150150
"default": {
151151
"description": "Default error response.",
152152
"schema": {
153-
"$ref": "../../preview/2015-12-01-preview/Compute.json#/definitions/CrpErrorDetails"
153+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
154154
}
155155
}
156156
}
@@ -199,7 +199,7 @@
199199
"default": {
200200
"description": "Default error response.",
201201
"schema": {
202-
"$ref": "../../preview/2015-12-01-preview/Compute.json#/definitions/CrpErrorDetails"
202+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
203203
}
204204
}
205205
}
@@ -248,7 +248,7 @@
248248
"default": {
249249
"description": "Default error response.",
250250
"schema": {
251-
"$ref": "../../preview/2015-12-01-preview/Compute.json#/definitions/CrpErrorDetails"
251+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
252252
}
253253
}
254254
}

specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/stable/2021-01-01/Quotas.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"default": {
5353
"description": "Default Response.",
5454
"schema": {
55-
"$ref": "../../preview/2015-12-01-preview/Compute.json#/definitions/CrpErrorDetails"
55+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
5656
}
5757
}
5858
}
@@ -102,7 +102,7 @@
102102
"default": {
103103
"description": "Default Response.",
104104
"schema": {
105-
"$ref": "../../preview/2015-12-01-preview/Compute.json#/definitions/CrpErrorDetails"
105+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
106106
}
107107
}
108108
}
@@ -146,7 +146,7 @@
146146
"default": {
147147
"description": "Default Response.",
148148
"schema": {
149-
"$ref": "../../preview/2015-12-01-preview/Compute.json#/definitions/CrpErrorDetails"
149+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
150150
}
151151
}
152152
}
@@ -192,7 +192,7 @@
192192
"default": {
193193
"description": "Default Response.",
194194
"schema": {
195-
"$ref": "../../preview/2015-12-01-preview/Compute.json#/definitions/CrpErrorDetails"
195+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
196196
}
197197
}
198198
},

specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/stable/2021-03-30/ScaleUnits.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"default": {
5353
"description": "Default Response.",
5454
"schema": {
55-
"$ref": "../../preview/2015-12-01-preview/Compute.json#/definitions/CrpErrorDetails"
55+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
5656
}
5757
}
5858
}

0 commit comments

Comments
 (0)