Skip to content

Commit 437d901

Browse files
ran just ready thanks to the helpful comment in CI
1 parent 4b36d1e commit 437d901

File tree

3 files changed

+199
-70
lines changed

3 files changed

+199
-70
lines changed

docs/schemas/0.0.0/schema.json

+99-35
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
"properties": {
77
"$schema": {
88
"description": "A field for the [JSON schema](https://json-schema.org/) specification",
9-
"type": ["string", "null"]
9+
"type": [
10+
"string",
11+
"null"
12+
]
1013
},
1114
"db": {
1215
"description": "The configuration of the database connection",
@@ -70,45 +73,61 @@
7073
"description": "The configuration of the database connection.",
7174
"type": "object",
7275
"properties": {
76+
"allowStatementExecutionsAgainst": {
77+
"anyOf": [
78+
{
79+
"$ref": "#/definitions/StringSet"
80+
},
81+
{
82+
"type": "null"
83+
}
84+
]
85+
},
7386
"connTimeoutSecs": {
7487
"description": "The connection timeout in seconds.",
75-
"type": ["integer", "null"],
88+
"type": [
89+
"integer",
90+
"null"
91+
],
7692
"format": "uint16",
7793
"minimum": 0.0
7894
},
7995
"database": {
8096
"description": "The name of the database.",
81-
"type": ["string", "null"]
97+
"type": [
98+
"string",
99+
"null"
100+
]
82101
},
83102
"host": {
84103
"description": "The host of the database.",
85-
"type": ["string", "null"]
104+
"type": [
105+
"string",
106+
"null"
107+
]
86108
},
87109
"password": {
88110
"description": "The password to connect to the database.",
89-
"type": ["string", "null"]
111+
"type": [
112+
"string",
113+
"null"
114+
]
90115
},
91116
"port": {
92117
"description": "The port of the database.",
93-
"type": ["integer", "null"],
118+
"type": [
119+
"integer",
120+
"null"
121+
],
94122
"format": "uint16",
95123
"minimum": 0.0
96124
},
97125
"username": {
98126
"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.",
103-
"anyOf": [
104-
{
105-
"$ref": "#/definitions/StringSet"
106-
},
107-
{
108-
"type": "null"
109-
}
110-
],
111-
"examples": ["*.myapp.com/test-db", "localhost/*", "127.0.0.1/*"]
127+
"type": [
128+
"string",
129+
"null"
130+
]
112131
}
113132
},
114133
"additionalProperties": false
@@ -141,7 +160,10 @@
141160
},
142161
"maxSize": {
143162
"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+
],
145167
"format": "uint64",
146168
"minimum": 1.0
147169
}
@@ -153,7 +175,10 @@
153175
"properties": {
154176
"enabled": {
155177
"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+
]
157182
},
158183
"ignore": {
159184
"description": "A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.",
@@ -197,13 +222,19 @@
197222
"properties": {
198223
"after": {
199224
"description": "Ignore any migrations before this timestamp",
200-
"type": ["integer", "null"],
225+
"type": [
226+
"integer",
227+
"null"
228+
],
201229
"format": "uint64",
202230
"minimum": 0.0
203231
},
204232
"migrationsDir": {
205233
"description": "The directory where the migration files are stored",
206-
"type": ["string", "null"]
234+
"type": [
235+
"string",
236+
"null"
237+
]
207238
}
208239
},
209240
"additionalProperties": false
@@ -220,11 +251,18 @@
220251
},
221252
"RulePlainConfiguration": {
222253
"type": "string",
223-
"enum": ["warn", "error", "info", "off"]
254+
"enum": [
255+
"warn",
256+
"error",
257+
"info",
258+
"off"
259+
]
224260
},
225261
"RuleWithNoOptions": {
226262
"type": "object",
227-
"required": ["level"],
263+
"required": [
264+
"level"
265+
],
228266
"properties": {
229267
"level": {
230268
"description": "The severity of the emitted diagnostics by the rule",
@@ -242,11 +280,17 @@
242280
"properties": {
243281
"all": {
244282
"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+
]
246287
},
247288
"recommended": {
248289
"description": "It enables the lint rules recommended by Postgres Tools. `true` by default.",
249-
"type": ["boolean", "null"]
290+
"type": [
291+
"boolean",
292+
"null"
293+
]
250294
},
251295
"safety": {
252296
"anyOf": [
@@ -278,7 +322,10 @@
278322
},
279323
"all": {
280324
"description": "It enables ALL rules for this group.",
281-
"type": ["boolean", "null"]
325+
"type": [
326+
"boolean",
327+
"null"
328+
]
282329
},
283330
"banDropColumn": {
284331
"description": "Dropping a column may break existing clients.",
@@ -315,7 +362,10 @@
315362
},
316363
"recommended": {
317364
"description": "It enables the recommended rules for this group",
318-
"type": ["boolean", "null"]
365+
"type": [
366+
"boolean",
367+
"null"
368+
]
319369
}
320370
},
321371
"additionalProperties": false
@@ -332,7 +382,9 @@
332382
{
333383
"description": "Integration with the git client as VCS",
334384
"type": "string",
335-
"enum": ["git"]
385+
"enum": [
386+
"git"
387+
]
336388
}
337389
]
338390
},
@@ -353,22 +405,34 @@
353405
},
354406
"defaultBranch": {
355407
"description": "The main branch of the project",
356-
"type": ["string", "null"]
408+
"type": [
409+
"string",
410+
"null"
411+
]
357412
},
358413
"enabled": {
359414
"description": "Whether we should integrate itself with the VCS client",
360-
"type": ["boolean", "null"]
415+
"type": [
416+
"boolean",
417+
"null"
418+
]
361419
},
362420
"root": {
363421
"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+
]
365426
},
366427
"useIgnoreFile": {
367428
"description": "Whether we should use the VCS ignore file. When [true], we will ignore the files specified in the ignore file.",
368-
"type": ["boolean", "null"]
429+
"type": [
430+
"boolean",
431+
"null"
432+
]
369433
}
370434
},
371435
"additionalProperties": false
372436
}
373437
}
374-
}
438+
}

0 commit comments

Comments
 (0)