Skip to content

Commit dc2e17d

Browse files
authored
Add min length constraints to various properties in the db config schema (#1868)
1 parent b228549 commit dc2e17d

1 file changed

Lines changed: 32 additions & 16 deletions

File tree

extensions/ql-vscode/workspace-databases-schema.json

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"type": "object",
1717
"properties": {
1818
"name": {
19-
"type": "string"
19+
"type": "string",
20+
"minLength": 1
2021
},
2122
"repositories": {
2223
"type": "array",
@@ -65,16 +66,19 @@
6566
"type": "object",
6667
"properties": {
6768
"name": {
68-
"type": "string"
69+
"type": "string",
70+
"minLength": 1
6971
},
7072
"dateAdded": {
7173
"type": "number"
7274
},
7375
"language": {
74-
"type": "string"
76+
"type": "string",
77+
"minLength": 1
7578
},
7679
"storagePath": {
77-
"type": "string"
80+
"type": "string",
81+
"minLength": 1
7882
}
7983
},
8084
"required": [
@@ -97,16 +101,19 @@
97101
"type": "object",
98102
"properties": {
99103
"name": {
100-
"type": "string"
104+
"type": "string",
105+
"minLength": 1
101106
},
102107
"dateAdded": {
103108
"type": "number"
104109
},
105110
"language": {
106-
"type": "string"
111+
"type": "string",
112+
"minLength": 1
107113
},
108114
"storagePath": {
109-
"type": "string"
115+
"type": "string",
116+
"minLength": 1
110117
}
111118
},
112119
"required": ["name", "dateAdded", "language", "storagePath"],
@@ -143,7 +150,8 @@
143150
"enum": ["localUserDefinedList"]
144151
},
145152
"listName": {
146-
"type": "string"
153+
"type": "string",
154+
"minLength": 1
147155
}
148156
},
149157
"required": ["kind", "listName"],
@@ -166,7 +174,8 @@
166174
"enum": ["remoteUserDefinedList"]
167175
},
168176
"listName": {
169-
"type": "string"
177+
"type": "string",
178+
"minLength": 1
170179
}
171180
},
172181
"required": ["kind", "listName"],
@@ -185,7 +194,8 @@
185194
"enum": ["localUserDefinedList"]
186195
},
187196
"listName": {
188-
"type": "string"
197+
"type": "string",
198+
"minLength": 1
189199
}
190200
},
191201
"required": ["kind", "listName"],
@@ -201,7 +211,8 @@
201211
"type": "string"
202212
},
203213
"listName": {
204-
"type": "string"
214+
"type": "string",
215+
"minLength": 1
205216
}
206217
},
207218
"required": ["kind", "databaseName"],
@@ -214,7 +225,8 @@
214225
"enum": ["remoteSystemDefinedList"]
215226
},
216227
"listName": {
217-
"type": "string"
228+
"type": "string",
229+
"minLength": 1
218230
}
219231
},
220232
"required": ["kind", "listName"],
@@ -227,7 +239,8 @@
227239
"enum": ["remoteUserDefinedList"]
228240
},
229241
"listName": {
230-
"type": "string"
242+
"type": "string",
243+
"minLength": 1
231244
}
232245
},
233246
"required": ["kind", "listName"],
@@ -240,7 +253,8 @@
240253
"enum": ["remoteOwner"]
241254
},
242255
"ownerName": {
243-
"type": "string"
256+
"type": "string",
257+
"minLength": 1
244258
}
245259
},
246260
"required": ["kind", "ownerName"],
@@ -253,10 +267,12 @@
253267
"enum": ["remoteRepository"]
254268
},
255269
"repositoryName": {
256-
"type": "string"
270+
"type": "string",
271+
"minLength": 1
257272
},
258273
"listName": {
259-
"type": "string"
274+
"type": "string",
275+
"minLength": 1
260276
}
261277
},
262278
"required": ["kind", "repositoryName"],

0 commit comments

Comments
 (0)