Skip to content

Commit 4270bed

Browse files
authored
parameter name correction (#13554)
* parameter name correction * remove custom error
1 parent 01764cf commit 4270bed

9 files changed

+4
-80
lines changed

specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-08-01-preview/authorization-RoleAssignmentsCalls.json

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,6 @@
249249
"$ref": "#/definitions/RoleAssignment"
250250
}
251251
},
252-
"500": {
253-
"x-ms-error-response": true,
254-
"description": "Error.",
255-
"schema": {
256-
"$ref": "#/definitions/CustomErrorResponse"
257-
}
258-
},
259252
"default": {
260253
"description": "Error response describing why the operation failed.",
261254
"schema": {
@@ -344,13 +337,6 @@
344337
"$ref": "#/definitions/ValidationResponse"
345338
}
346339
},
347-
"500": {
348-
"x-ms-error-response": true,
349-
"description": "Error.",
350-
"schema": {
351-
"$ref": "#/definitions/CustomErrorResponse"
352-
}
353-
},
354340
"default": {
355341
"description": "Error response describing why the operation failed.",
356342
"schema": {
@@ -476,13 +462,6 @@
476462
"$ref": "#/definitions/RoleAssignment"
477463
}
478464
},
479-
"500": {
480-
"x-ms-error-response": true,
481-
"description": "Error.",
482-
"schema": {
483-
"$ref": "#/definitions/CustomErrorResponse"
484-
}
485-
},
486465
"default": {
487466
"description": "Error response describing why the operation failed.",
488467
"schema": {
@@ -559,13 +538,6 @@
559538
"$ref": "#/definitions/ValidationResponse"
560539
}
561540
},
562-
"500": {
563-
"x-ms-error-response": true,
564-
"description": "Error.",
565-
"schema": {
566-
"$ref": "#/definitions/CustomErrorResponse"
567-
}
568-
},
569541
"default": {
570542
"description": "Error response describing why the operation failed.",
571543
"schema": {
@@ -585,15 +557,6 @@
585557
}
586558
},
587559
"definitions": {
588-
"CustomErrorResponse": {
589-
"properties": {
590-
"message": {
591-
"type": "string",
592-
"description": "Description of the error."
593-
}
594-
},
595-
"description": "Descriptive error response."
596-
},
597560
"ValidationResponseErrorInfo": {
598561
"description": "Failed validation result details",
599562
"properties": {
@@ -617,7 +580,7 @@
617580
"type": "boolean",
618581
"description": "Whether or not validation succeeded"
619582
},
620-
"validationErrorInfo": {
583+
"errorInfo": {
621584
"description": "Failed validation result details",
622585
"$ref": "#/definitions/ValidationResponseErrorInfo"
623586
}
@@ -652,6 +615,7 @@
652615
"RoleAssignmentProperties": {
653616
"properties": {
654617
"scope": {
618+
"readOnly": true,
655619
"type": "string",
656620
"description": "The role assignment scope."
657621
},

specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-08-01-preview/examples/RoleAssignments_CreateById.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@
3636
"type": "Microsoft.Authorization/roleAssignments",
3737
"name": "b0f43c54-e787-4862-89b1-a653fa9cf747"
3838
}
39-
},
40-
"500": {
41-
"body": {
42-
"message": "Something went wrong."
43-
}
4439
}
4540
}
4641
}

specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-08-01-preview/examples/RoleAssignments_CreateForResource.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@
3737
"type": "Microsoft.Authorization/roleAssignments",
3838
"name": "05c5a614-a7d6-4502-b150-c2fb455033ff"
3939
}
40-
},
41-
"500": {
42-
"body": {
43-
"message": "Something went wrong."
44-
}
4540
}
4641
}
4742
}

specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-08-01-preview/examples/RoleAssignments_CreateForResourceGroup.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@
3737
"type": "Microsoft.Authorization/roleAssignments",
3838
"name": "05c5a614-a7d6-4502-b150-c2fb455033ff"
3939
}
40-
},
41-
"500": {
42-
"body": {
43-
"message": "Something went wrong."
44-
}
4540
}
4641
}
4742
}

specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-08-01-preview/examples/RoleAssignments_CreateForSubscription.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@
3737
"type": "Microsoft.Authorization/roleAssignments",
3838
"name": "05c5a614-a7d6-4502-b150-c2fb455033ff"
3939
}
40-
},
41-
"500": {
42-
"body": {
43-
"message": "Something went wrong."
44-
}
4540
}
4641
}
4742
}

specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-08-01-preview/examples/RoleAssignments_ValidateByIdInvalid.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,11 @@
1414
"200": {
1515
"body": {
1616
"isValid": false,
17-
"validationErrorInfo": {
17+
"errorInfo": {
1818
"code": "InvalidRoleDefinitionId",
1919
"message": "The specified role definition with ID '0b5fe924-9a61-425c-96af-cfe6e287ca2d' does not exist."
2020
}
2121
}
22-
},
23-
"500": {
24-
"body": {
25-
"message": "Something went wrong."
26-
}
2722
}
2823
}
2924
}

specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-08-01-preview/examples/RoleAssignments_ValidateByIdValid.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
"body": {
1616
"isValid": true
1717
}
18-
},
19-
"500": {
20-
"body": {
21-
"message": "Something went wrong."
22-
}
2318
}
2419
}
2520
}

specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-08-01-preview/examples/RoleAssignments_ValidateInvalid.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,11 @@
1515
"200": {
1616
"body": {
1717
"isValid": false,
18-
"validationErrorInfo": {
18+
"errorInfo": {
1919
"code": "InvalidRoleDefinitionId",
2020
"message": "The specified role definition with ID '0b5fe924-9a61-425c-96af-cfe6e287ca2d' does not exist."
2121
}
2222
}
23-
},
24-
"500": {
25-
"body": {
26-
"message": "Something went wrong."
27-
}
2823
}
2924
}
3025
}

specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-08-01-preview/examples/RoleAssignments_ValidateValid.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
"body": {
1717
"isValid": true
1818
}
19-
},
20-
"500": {
21-
"body": {
22-
"message": "Something went wrong."
23-
}
2419
}
2520
}
2621
}

0 commit comments

Comments
 (0)