Skip to content

Commit e73c753

Browse files
authored
OSSRDBMS -Fixing swagger linting errors (#12279)
1 parent 54e5466 commit e73c753

File tree

5 files changed

+554
-6
lines changed
  • specification
    • mariadb/resource-manager/Microsoft.DBforMariaDB/preview/2018-06-01-preview
    • mysql/resource-manager/Microsoft.DBforMySQL
    • postgresql/resource-manager/Microsoft.DBforPostgreSQL

5 files changed

+554
-6
lines changed

specification/mariadb/resource-manager/Microsoft.DBforMariaDB/preview/2018-06-01-preview/mariadb.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,6 +1526,7 @@
15261526
"properties": {
15271527
"backupRetentionDays": {
15281528
"type": "integer",
1529+
"format": "int32",
15291530
"description": "Backup retention days for the server."
15301531
},
15311532
"geoRedundantBackup": {
@@ -2222,6 +2223,7 @@
22222223
},
22232224
"vCore": {
22242225
"type": "integer",
2226+
"format": "int32",
22252227
"description": "vCore associated with the service level objective"
22262228
},
22272229
"hardwareGeneration": {
@@ -2230,10 +2232,12 @@
22302232
},
22312233
"maxBackupRetentionDays": {
22322234
"type": "integer",
2235+
"format": "int32",
22332236
"description": "Maximum Backup retention in days for the performance tier edition"
22342237
},
22352238
"minBackupRetentionDays": {
22362239
"type": "integer",
2240+
"format": "int32",
22372241
"description": "Minimum Backup retention in days for the performance tier edition"
22382242
},
22392243
"maxStorageMB": {

specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2017-12-01-preview/mysql.json

Lines changed: 137 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@
9393
},
9494
"202": {
9595
"description": "Accepted"
96+
},
97+
"default": {
98+
"description": "Error response describing why the operation failed.",
99+
"schema": {
100+
"$ref": "#/definitions/CloudError"
101+
}
96102
}
97103
},
98104
"x-ms-long-running-operation": true
@@ -140,6 +146,12 @@
140146
},
141147
"202": {
142148
"description": "Accepted"
149+
},
150+
"default": {
151+
"description": "Error response describing why the operation failed.",
152+
"schema": {
153+
"$ref": "#/definitions/CloudError"
154+
}
143155
}
144156
},
145157
"x-ms-long-running-operation": true
@@ -178,6 +190,12 @@
178190
},
179191
"204": {
180192
"description": "NoContent"
193+
},
194+
"default": {
195+
"description": "Error response describing why the operation failed.",
196+
"schema": {
197+
"$ref": "#/definitions/CloudError"
198+
}
181199
}
182200
},
183201
"x-ms-long-running-operation": true
@@ -213,6 +231,12 @@
213231
"schema": {
214232
"$ref": "#/definitions/Server"
215233
}
234+
},
235+
"default": {
236+
"description": "Error response describing why the operation failed.",
237+
"schema": {
238+
"$ref": "#/definitions/CloudError"
239+
}
216240
}
217241
}
218242
}
@@ -246,6 +270,12 @@
246270
"schema": {
247271
"$ref": "#/definitions/ServerListResult"
248272
}
273+
},
274+
"default": {
275+
"description": "Error response describing why the operation failed.",
276+
"schema": {
277+
"$ref": "#/definitions/CloudError"
278+
}
249279
}
250280
},
251281
"x-ms-pageable": {
@@ -279,6 +309,12 @@
279309
"schema": {
280310
"$ref": "#/definitions/ServerListResult"
281311
}
312+
},
313+
"default": {
314+
"description": "Error response describing why the operation failed.",
315+
"schema": {
316+
"$ref": "#/definitions/CloudError"
317+
}
282318
}
283319
},
284320
"x-ms-pageable": {
@@ -361,6 +397,12 @@
361397
"schema": {
362398
"$ref": "#/definitions/ServerListResult"
363399
}
400+
},
401+
"default": {
402+
"description": "Error response describing why the operation failed.",
403+
"schema": {
404+
"$ref": "#/definitions/CloudError"
405+
}
364406
}
365407
},
366408
"x-ms-pageable": {
@@ -421,6 +463,12 @@
421463
},
422464
"202": {
423465
"description": "Accepted"
466+
},
467+
"default": {
468+
"description": "Error response describing why the operation failed.",
469+
"schema": {
470+
"$ref": "#/definitions/CloudError"
471+
}
424472
}
425473
},
426474
"x-ms-long-running-operation": true
@@ -462,6 +510,12 @@
462510
},
463511
"204": {
464512
"description": "NoContent"
513+
},
514+
"default": {
515+
"description": "Error response describing why the operation failed.",
516+
"schema": {
517+
"$ref": "#/definitions/CloudError"
518+
}
465519
}
466520
},
467521
"x-ms-long-running-operation": true
@@ -500,6 +554,12 @@
500554
"schema": {
501555
"$ref": "#/definitions/FirewallRule"
502556
}
557+
},
558+
"default": {
559+
"description": "Error response describing why the operation failed.",
560+
"schema": {
561+
"$ref": "#/definitions/CloudError"
562+
}
503563
}
504564
}
505565
}
@@ -536,6 +596,12 @@
536596
"schema": {
537597
"$ref": "#/definitions/FirewallRuleListResult"
538598
}
599+
},
600+
"default": {
601+
"description": "Error response describing why the operation failed.",
602+
"schema": {
603+
"$ref": "#/definitions/CloudError"
604+
}
539605
}
540606
},
541607
"x-ms-pageable": {
@@ -783,6 +849,12 @@
783849
},
784850
"202": {
785851
"description": "Accepted"
852+
},
853+
"default": {
854+
"description": "Error response describing why the operation failed.",
855+
"schema": {
856+
"$ref": "#/definitions/CloudError"
857+
}
786858
}
787859
},
788860
"x-ms-long-running-operation": true
@@ -824,6 +896,12 @@
824896
},
825897
"204": {
826898
"description": "NoContent"
899+
},
900+
"default": {
901+
"description": "Error response describing why the operation failed.",
902+
"schema": {
903+
"$ref": "#/definitions/CloudError"
904+
}
827905
}
828906
},
829907
"x-ms-long-running-operation": true
@@ -862,6 +940,12 @@
862940
"schema": {
863941
"$ref": "#/definitions/Database"
864942
}
943+
},
944+
"default": {
945+
"description": "Error response describing why the operation failed.",
946+
"schema": {
947+
"$ref": "#/definitions/CloudError"
948+
}
865949
}
866950
}
867951
}
@@ -898,6 +982,12 @@
898982
"schema": {
899983
"$ref": "#/definitions/DatabaseListResult"
900984
}
985+
},
986+
"default": {
987+
"description": "Error response describing why the operation failed.",
988+
"schema": {
989+
"$ref": "#/definitions/CloudError"
990+
}
901991
}
902992
},
903993
"x-ms-pageable": {
@@ -952,6 +1042,12 @@
9521042
},
9531043
"202": {
9541044
"description": "Accepted"
1045+
},
1046+
"default": {
1047+
"description": "Error response describing why the operation failed.",
1048+
"schema": {
1049+
"$ref": "#/definitions/CloudError"
1050+
}
9551051
}
9561052
},
9571053
"x-ms-long-running-operation": true
@@ -990,6 +1086,12 @@
9901086
"schema": {
9911087
"$ref": "#/definitions/Configuration"
9921088
}
1089+
},
1090+
"default": {
1091+
"description": "Error response describing why the operation failed.",
1092+
"schema": {
1093+
"$ref": "#/definitions/CloudError"
1094+
}
9931095
}
9941096
}
9951097
}
@@ -1026,6 +1128,12 @@
10261128
"schema": {
10271129
"$ref": "#/definitions/ConfigurationListResult"
10281130
}
1131+
},
1132+
"default": {
1133+
"description": "Error response describing why the operation failed.",
1134+
"schema": {
1135+
"$ref": "#/definitions/CloudError"
1136+
}
10291137
}
10301138
},
10311139
"x-ms-pageable": {
@@ -1120,14 +1228,20 @@
11201228
"schema": {
11211229
"$ref": "#/definitions/LogFileListResult"
11221230
}
1231+
},
1232+
"default": {
1233+
"description": "Error response describing why the operation failed.",
1234+
"schema": {
1235+
"$ref": "#/definitions/CloudError"
1236+
}
11231237
}
11241238
},
11251239
"x-ms-pageable": {
11261240
"nextLinkName": null
11271241
}
11281242
}
11291243
},
1130-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/Administrators/activeDirectory": {
1244+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/administrators/activeDirectory": {
11311245
"get": {
11321246
"tags": [
11331247
"ServerAdministrators"
@@ -1430,6 +1544,12 @@
14301544
"schema": {
14311545
"$ref": "#/definitions/PerformanceTierListResult"
14321546
}
1547+
},
1548+
"default": {
1549+
"description": "Error response describing why the operation failed.",
1550+
"schema": {
1551+
"$ref": "#/definitions/CloudError"
1552+
}
14331553
}
14341554
},
14351555
"x-ms-pageable": {
@@ -1472,6 +1592,12 @@
14721592
"schema": {
14731593
"$ref": "#/definitions/NameAvailability"
14741594
}
1595+
},
1596+
"default": {
1597+
"description": "Error response describing why the operation failed.",
1598+
"schema": {
1599+
"$ref": "#/definitions/CloudError"
1600+
}
14751601
}
14761602
}
14771603
}
@@ -1619,6 +1745,12 @@
16191745
"schema": {
16201746
"$ref": "#/definitions/OperationListResult"
16211747
}
1748+
},
1749+
"default": {
1750+
"description": "Error response describing why the operation failed.",
1751+
"schema": {
1752+
"$ref": "#/definitions/CloudError"
1753+
}
16221754
}
16231755
}
16241756
}
@@ -1862,6 +1994,7 @@
18621994
"properties": {
18631995
"backupRetentionDays": {
18641996
"type": "integer",
1997+
"format": "int32",
18651998
"description": "Backup retention days for the server."
18661999
},
18672000
"geoRedundantBackup": {
@@ -2564,6 +2697,7 @@
25642697
},
25652698
"vCore": {
25662699
"type": "integer",
2700+
"format": "int32",
25672701
"description": "vCore associated with the service level objective"
25682702
},
25692703
"hardwareGeneration": {
@@ -2572,10 +2706,12 @@
25722706
},
25732707
"maxBackupRetentionDays": {
25742708
"type": "integer",
2709+
"format": "int32",
25752710
"description": "Maximum Backup retention in days for the performance tier edition"
25762711
},
25772712
"minBackupRetentionDays": {
25782713
"type": "integer",
2714+
"format": "int32",
25792715
"description": "Minimum Backup retention in days for the performance tier edition"
25802716
},
25812717
"maxStorageMB": {

0 commit comments

Comments
 (0)