You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/schemas/0.0.0/schema.json
+99-35
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,10 @@
6
6
"properties": {
7
7
"$schema": {
8
8
"description": "A field for the [JSON schema](https://json-schema.org/) specification",
9
-
"type": ["string", "null"]
9
+
"type": [
10
+
"string",
11
+
"null"
12
+
]
10
13
},
11
14
"db": {
12
15
"description": "The configuration of the database connection",
@@ -70,45 +73,61 @@
70
73
"description": "The configuration of the database connection.",
71
74
"type": "object",
72
75
"properties": {
76
+
"allowStatementExecutionsAgainst": {
77
+
"anyOf": [
78
+
{
79
+
"$ref": "#/definitions/StringSet"
80
+
},
81
+
{
82
+
"type": "null"
83
+
}
84
+
]
85
+
},
73
86
"connTimeoutSecs": {
74
87
"description": "The connection timeout in seconds.",
75
-
"type": ["integer", "null"],
88
+
"type": [
89
+
"integer",
90
+
"null"
91
+
],
76
92
"format": "uint16",
77
93
"minimum": 0.0
78
94
},
79
95
"database": {
80
96
"description": "The name of the database.",
81
-
"type": ["string", "null"]
97
+
"type": [
98
+
"string",
99
+
"null"
100
+
]
82
101
},
83
102
"host": {
84
103
"description": "The host of the database.",
85
-
"type": ["string", "null"]
104
+
"type": [
105
+
"string",
106
+
"null"
107
+
]
86
108
},
87
109
"password": {
88
110
"description": "The password to connect to the database.",
89
-
"type": ["string", "null"]
111
+
"type": [
112
+
"string",
113
+
"null"
114
+
]
90
115
},
91
116
"port": {
92
117
"description": "The port of the database.",
93
-
"type": ["integer", "null"],
118
+
"type": [
119
+
"integer",
120
+
"null"
121
+
],
94
122
"format": "uint16",
95
123
"minimum": 0.0
96
124
},
97
125
"username": {
98
126
"description": "The username to connect to the database.",
99
-
"type": ["string", "null"]
100
-
},
101
-
"allowStatementExecutionsAgainst": {
102
-
"description": "A list of <host-glob>/<database-glob> strings. The LSP will offer an 'Execute Statement Under Cursor' command if you're connected to matching hosts/databases. Useful for quickly iterating migrations, for example.",
"description": "The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB",
144
-
"type": ["integer", "null"],
163
+
"type": [
164
+
"integer",
165
+
"null"
166
+
],
145
167
"format": "uint64",
146
168
"minimum": 1.0
147
169
}
@@ -153,7 +175,10 @@
153
175
"properties": {
154
176
"enabled": {
155
177
"description": "if `false`, it disables the feature and the linter won't be executed. `true` by default",
156
-
"type": ["boolean", "null"]
178
+
"type": [
179
+
"boolean",
180
+
"null"
181
+
]
157
182
},
158
183
"ignore": {
159
184
"description": "A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.",
@@ -197,13 +222,19 @@
197
222
"properties": {
198
223
"after": {
199
224
"description": "Ignore any migrations before this timestamp",
200
-
"type": ["integer", "null"],
225
+
"type": [
226
+
"integer",
227
+
"null"
228
+
],
201
229
"format": "uint64",
202
230
"minimum": 0.0
203
231
},
204
232
"migrationsDir": {
205
233
"description": "The directory where the migration files are stored",
206
-
"type": ["string", "null"]
234
+
"type": [
235
+
"string",
236
+
"null"
237
+
]
207
238
}
208
239
},
209
240
"additionalProperties": false
@@ -220,11 +251,18 @@
220
251
},
221
252
"RulePlainConfiguration": {
222
253
"type": "string",
223
-
"enum": ["warn", "error", "info", "off"]
254
+
"enum": [
255
+
"warn",
256
+
"error",
257
+
"info",
258
+
"off"
259
+
]
224
260
},
225
261
"RuleWithNoOptions": {
226
262
"type": "object",
227
-
"required": ["level"],
263
+
"required": [
264
+
"level"
265
+
],
228
266
"properties": {
229
267
"level": {
230
268
"description": "The severity of the emitted diagnostics by the rule",
@@ -242,11 +280,17 @@
242
280
"properties": {
243
281
"all": {
244
282
"description": "It enables ALL rules. The rules that belong to `nursery` won't be enabled.",
245
-
"type": ["boolean", "null"]
283
+
"type": [
284
+
"boolean",
285
+
"null"
286
+
]
246
287
},
247
288
"recommended": {
248
289
"description": "It enables the lint rules recommended by Postgres Tools. `true` by default.",
249
-
"type": ["boolean", "null"]
290
+
"type": [
291
+
"boolean",
292
+
"null"
293
+
]
250
294
},
251
295
"safety": {
252
296
"anyOf": [
@@ -278,7 +322,10 @@
278
322
},
279
323
"all": {
280
324
"description": "It enables ALL rules for this group.",
281
-
"type": ["boolean", "null"]
325
+
"type": [
326
+
"boolean",
327
+
"null"
328
+
]
282
329
},
283
330
"banDropColumn": {
284
331
"description": "Dropping a column may break existing clients.",
@@ -315,7 +362,10 @@
315
362
},
316
363
"recommended": {
317
364
"description": "It enables the recommended rules for this group",
318
-
"type": ["boolean", "null"]
365
+
"type": [
366
+
"boolean",
367
+
"null"
368
+
]
319
369
}
320
370
},
321
371
"additionalProperties": false
@@ -332,7 +382,9 @@
332
382
{
333
383
"description": "Integration with the git client as VCS",
334
384
"type": "string",
335
-
"enum": ["git"]
385
+
"enum": [
386
+
"git"
387
+
]
336
388
}
337
389
]
338
390
},
@@ -353,22 +405,34 @@
353
405
},
354
406
"defaultBranch": {
355
407
"description": "The main branch of the project",
356
-
"type": ["string", "null"]
408
+
"type": [
409
+
"string",
410
+
"null"
411
+
]
357
412
},
358
413
"enabled": {
359
414
"description": "Whether we should integrate itself with the VCS client",
360
-
"type": ["boolean", "null"]
415
+
"type": [
416
+
"boolean",
417
+
"null"
418
+
]
361
419
},
362
420
"root": {
363
421
"description": "The folder where we should check for VCS files. By default, we will use the same folder where `postgrestools.jsonc` was found.\n\nIf we can't find the configuration, it will attempt to use the current working directory. If no current working directory can't be found, we won't use the VCS integration, and a diagnostic will be emitted",
364
-
"type": ["string", "null"]
422
+
"type": [
423
+
"string",
424
+
"null"
425
+
]
365
426
},
366
427
"useIgnoreFile": {
367
428
"description": "Whether we should use the VCS ignore file. When [true], we will ignore the files specified in the ignore file.",
0 commit comments