Skip to content

Commit 8e498d1

Browse files
authored
AAS - Fix Swagger Correctness v6 (#12999)
* fix additional property (cherry picked from commit 4556f27) * Fix to use ErrorDetail
1 parent 47b422a commit 8e498d1

File tree

1 file changed

+20
-64
lines changed
  • specification/analysisservices/resource-manager/Microsoft.AnalysisServices/stable/2017-08-01

1 file changed

+20
-64
lines changed

specification/analysisservices/resource-manager/Microsoft.AnalysisServices/stable/2017-08-01/analysisservices.json

Lines changed: 20 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,31 +1342,7 @@
13421342
"GatewayError": {
13431343
"description": "Detail of gateway errors.",
13441344
"type": "object",
1345-
"properties": {
1346-
"code": {
1347-
"type": "string",
1348-
"description": "Error code of list gateway."
1349-
},
1350-
"message": {
1351-
"type": "string",
1352-
"description": "Error message of list gateway."
1353-
},
1354-
"subCode": {
1355-
"description": "The error sub code",
1356-
"type": "integer",
1357-
"format": "int32"
1358-
},
1359-
"httpStatusCode": {
1360-
"description": "The http status code",
1361-
"type": "integer",
1362-
"format": "int32"
1363-
},
1364-
"timeStamp": {
1365-
"description": "the timestamp for the error.",
1366-
"type": "string",
1367-
"readOnly": true
1368-
}
1369-
}
1345+
"$ref": "#/definitions/ErrorDetail"
13701346
},
13711347
"CheckServerNameAvailabilityParameters": {
13721348
"description": "Details of server name request body.",
@@ -1431,7 +1407,7 @@
14311407
"error": {
14321408
"type": "object",
14331409
"description": "The error detail of the operation if any.",
1434-
"$ref": "#/definitions/ErrorObject"
1410+
"$ref": "#/definitions/ErrorDetail"
14351411
}
14361412
}
14371413
},
@@ -1493,6 +1469,23 @@
14931469
"type": "string",
14941470
"description": "The error target."
14951471
},
1472+
"subCode": {
1473+
"readOnly": true,
1474+
"description": "The error sub code",
1475+
"type": "integer",
1476+
"format": "int32"
1477+
},
1478+
"httpStatusCode": {
1479+
"readOnly": true,
1480+
"description": "The http status code",
1481+
"type": "integer",
1482+
"format": "int32"
1483+
},
1484+
"timeStamp": {
1485+
"readOnly": true,
1486+
"description": "the timestamp for the error.",
1487+
"type": "string"
1488+
},
14961489
"details": {
14971490
"readOnly": true,
14981491
"type": "array",
@@ -1526,50 +1519,13 @@
15261519
},
15271520
"description": "The resource management error additional info."
15281521
},
1529-
"ErrorObject": {
1530-
"type": "object",
1531-
"description": "The error object",
1532-
"properties": {
1533-
"code": {
1534-
"description": "Error code",
1535-
"type": "string"
1536-
},
1537-
"message": {
1538-
"description": "Error message indicating why the operation failed.",
1539-
"type": "string"
1540-
},
1541-
"subCode": {
1542-
"description": "The error sub code",
1543-
"type": "integer",
1544-
"format": "int32"
1545-
},
1546-
"httpStatusCode": {
1547-
"description": "The http status code",
1548-
"type": "integer",
1549-
"format": "int32"
1550-
},
1551-
"timeStamp": {
1552-
"description": "the timestamp for the error.",
1553-
"type": "string",
1554-
"readOnly": true
1555-
},
1556-
"details": {
1557-
"readOnly": true,
1558-
"type": "array",
1559-
"items": {
1560-
"$ref": "#/definitions/ErrorDetail"
1561-
},
1562-
"description": "The error details."
1563-
}
1564-
}
1565-
},
15661522
"ErrorResponse": {
15671523
"description": "Describes the format of Error response.",
15681524
"type": "object",
15691525
"properties": {
15701526
"error": {
15711527
"description": "The error object",
1572-
"$ref": "#/definitions/ErrorObject"
1528+
"$ref": "#/definitions/ErrorDetail"
15731529
}
15741530
}
15751531
}

0 commit comments

Comments
 (0)