Skip to content

Commit 83994cf

Browse files
authored
AAS - Fix Swagger Correctness Issue (#12306)
* add missing property and fix status type * fxi nit * add missing property * fix prettier * no message * fix nit
1 parent 0237dcd commit 83994cf

File tree

6 files changed

+62
-11
lines changed

6 files changed

+62
-11
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,11 @@
838838
"description": "Operation type: Read, write, delete, etc.",
839839
"type": "string",
840840
"readOnly": true
841+
},
842+
"description": {
843+
"description": "Description of the operation object.",
844+
"type": "string",
845+
"readOnly": true
841846
}
842847
}
843848
},
@@ -1203,15 +1208,16 @@
12031208
"type": "object",
12041209
"properties": {
12051210
"status": {
1206-
"type": "string",
1211+
"type": "integer",
1212+
"format": "int32",
12071213
"enum": [
1208-
"Live"
1214+
0
12091215
],
12101216
"x-ms-enum": {
12111217
"name": "Status",
12121218
"modelAsString": false
12131219
},
1214-
"description": "Live message of list gateway."
1220+
"description": "Live message of list gateway. Status: 0 - Live"
12151221
}
12161222
}
12171223
},

specification/analysisservices/resource-manager/Microsoft.AnalysisServices/preview/2017-08-01-beta/examples/listGatewayStatus.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"200": {
1010
"headers": {},
1111
"body": {
12-
"status": "Live"
12+
"status": 0
1313
}
1414
}
1515
}

specification/analysisservices/resource-manager/Microsoft.AnalysisServices/stable/2016-05-16/analysisservices.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,6 +1113,14 @@
11131113
"message": {
11141114
"description": "Error message indicating why the operation failed.",
11151115
"type": "string"
1116+
},
1117+
"subCode": {
1118+
"description": "The error sub code",
1119+
"type": "string"
1120+
},
1121+
"httpStatusCode": {
1122+
"description": "The http status code",
1123+
"type": "string"
11161124
}
11171125
}
11181126
}

specification/analysisservices/resource-manager/Microsoft.AnalysisServices/stable/2017-07-14/analysisservices.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,15 +1093,16 @@
10931093
"type": "object",
10941094
"properties": {
10951095
"status": {
1096-
"type": "string",
1096+
"type": "integer",
1097+
"format": "int32",
10971098
"enum": [
1098-
"Live"
1099+
0
10991100
],
11001101
"x-ms-enum": {
11011102
"name": "Status",
11021103
"modelAsString": false
11031104
},
1104-
"description": "Live message of list gateway."
1105+
"description": "Live message of list gateway. Status: 0 - Live"
11051106
}
11061107
}
11071108
},

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

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,11 @@
838838
"description": "Operation type: Read, write, delete, etc.",
839839
"type": "string",
840840
"readOnly": true
841+
},
842+
"description": {
843+
"description": "Description of the operation object.",
844+
"type": "string",
845+
"readOnly": true
841846
}
842847
}
843848
},
@@ -1111,6 +1116,20 @@
11111116
},
11121117
"default": 1,
11131118
"description": "The managed mode of the server (0 = not managed, 1 = managed)."
1119+
},
1120+
"serverMonitorMode": {
1121+
"type": "integer",
1122+
"format": "int32",
1123+
"enum": [
1124+
0,
1125+
1
1126+
],
1127+
"x-ms-enum": {
1128+
"modelAsString": false,
1129+
"name": "ServerMonitorMode"
1130+
},
1131+
"default": 1,
1132+
"description": "The server monitor mode for AS server"
11141133
}
11151134
}
11161135
},
@@ -1189,15 +1208,16 @@
11891208
"type": "object",
11901209
"properties": {
11911210
"status": {
1192-
"type": "string",
1211+
"type": "integer",
1212+
"format": "int32",
11931213
"enum": [
1194-
"Live"
1214+
0
11951215
],
11961216
"x-ms-enum": {
11971217
"name": "Status",
11981218
"modelAsString": false
11991219
},
1200-
"description": "Live message of list gateway."
1220+
"description": "Live message of list gateway. Status: 0 - Live"
12011221
}
12021222
}
12031223
},
@@ -1222,6 +1242,14 @@
12221242
"message": {
12231243
"type": "string",
12241244
"description": "Error message of list gateway."
1245+
},
1246+
"subCode": {
1247+
"description": "The error sub code",
1248+
"type": "string"
1249+
},
1250+
"httpStatusCode": {
1251+
"description": "The http status code",
1252+
"type": "string"
12251253
}
12261254
}
12271255
},
@@ -1347,6 +1375,14 @@
13471375
"message": {
13481376
"description": "Error message indicating why the operation failed.",
13491377
"type": "string"
1378+
},
1379+
"subCode": {
1380+
"description": "The error sub code",
1381+
"type": "string"
1382+
},
1383+
"httpStatusCode": {
1384+
"description": "The http status code",
1385+
"type": "string"
13501386
}
13511387
}
13521388
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"200": {
1010
"headers": {},
1111
"body": {
12-
"status": "Live"
12+
"status": 0
1313
}
1414
}
1515
}

0 commit comments

Comments
 (0)