Skip to content

Commit dd7d162

Browse files
authored
Merge pull request finos#1360 from dcoric/fix-1288
fix: remove unused fileDB params from config schema, defaults, and docs
2 parents 09b226b + 25ff65a commit dd7d162

7 files changed

Lines changed: 9 additions & 48 deletions

File tree

config.schema.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -420,12 +420,7 @@
420420
"description": "Connection properties for an neDB file-based database",
421421
"properties": {
422422
"type": { "type": "string", "const": "fs" },
423-
"enabled": { "type": "boolean" },
424-
"params": {
425-
"type": "object",
426-
"description": "Legacy config property not currently used",
427-
"deprecated": true
428-
}
423+
"enabled": { "type": "boolean" }
429424
},
430425
"required": ["type", "enabled"]
431426
}

packages/git-proxy-cli/test/testCli.proxy.config.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
"sink": [
1414
{
1515
"type": "fs",
16-
"params": {
17-
"filepath": "./."
18-
},
1916
"enabled": true
2017
},
2118
{

proxy.config.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
"sink": [
2020
{
2121
"type": "fs",
22-
"params": {
23-
"filepath": "./."
24-
},
2522
"enabled": true
2623
},
2724
{

src/config/generated/config.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,6 @@ export interface Database {
496496
*/
497497
options?: Options;
498498
type: DatabaseType;
499-
/**
500-
* Legacy config property not currently used
501-
*/
502-
params?: { [key: string]: any };
503499
[property: string]: any;
504500
}
505501

@@ -938,7 +934,6 @@ const typeMap: any = {
938934
{ json: 'enabled', js: 'enabled', typ: true },
939935
{ json: 'options', js: 'options', typ: u(undefined, r('Options')) },
940936
{ json: 'type', js: 'type', typ: r('DatabaseType') },
941-
{ json: 'params', js: 'params', typ: u(undefined, m('any')) },
942937
],
943938
'any',
944939
),

test-e2e.proxy.config.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424
"sink": [
2525
{
2626
"type": "fs",
27-
"params": {
28-
"filepath": "./."
29-
},
3027
"enabled": false
3128
},
3229
{

test/generated-config.test.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,6 @@ describe('Generated Config (QuickType)', () => {
9696
sink: [
9797
{
9898
type: 'fs',
99-
params: {
100-
filepath: './.',
101-
},
10299
enabled: true,
103100
},
104101
],
@@ -149,7 +146,7 @@ describe('Generated Config (QuickType)', () => {
149146
{ project: 'proj2', name: 'repo2', url: 'https://github.com/proj2/repo2.git' },
150147
],
151148
authentication: [{ type: 'local', enabled: true }],
152-
sink: [{ type: 'fs', params: { filepath: './.' }, enabled: true }],
149+
sink: [{ type: 'fs', enabled: true }],
153150
plugins: ['plugin1', 'plugin2'],
154151
privateOrganizations: ['org1', 'org2'],
155152
};
@@ -167,7 +164,7 @@ describe('Generated Config (QuickType)', () => {
167164
proxyUrl: 'https://proxy.example.com',
168165
cookieSecret: 'secret',
169166
authentication: [{ type: 'local', enabled: true }],
170-
sink: [{ type: 'fs', params: { filepath: './.' }, enabled: true }],
167+
sink: [{ type: 'fs', enabled: true }],
171168
tls: {
172169
enabled: true,
173170
key: '/path/to/key.pem',
@@ -197,7 +194,7 @@ describe('Generated Config (QuickType)', () => {
197194
proxyUrl: 'https://proxy.example.com',
198195
cookieSecret: 'secret',
199196
authentication: [{ type: 'local', enabled: true }],
200-
sink: [{ type: 'fs', params: { filepath: './.' }, enabled: true }],
197+
sink: [{ type: 'fs', enabled: true }],
201198

202199
api: {
203200
ls: {
@@ -236,7 +233,7 @@ describe('Generated Config (QuickType)', () => {
236233
proxyUrl: 'https://proxy.example.com',
237234
cookieSecret: 'secret',
238235
authentication: [{ type: 'local', enabled: true }],
239-
sink: [{ type: 'fs', params: { filepath: './.' }, enabled: true }],
236+
sink: [{ type: 'fs', enabled: true }],
240237

241238
// Test different array structures
242239
authorisedList: [
@@ -267,7 +264,7 @@ describe('Generated Config (QuickType)', () => {
267264
proxyUrl: 'https://proxy.example.com',
268265
cookieSecret: 'secret',
269266
authentication: [{ type: 'local', enabled: true }],
270-
sink: [{ type: 'fs', params: { filepath: './.' }, enabled: true }],
267+
sink: [{ type: 'fs', enabled: true }],
271268

272269
sessionMaxAgeHours: 0,
273270
csrfProtection: false,
@@ -313,7 +310,7 @@ describe('Generated Config (QuickType)', () => {
313310
proxyUrl: 'https://proxy.example.com',
314311
cookieSecret: null,
315312
authentication: [{ type: 'local', enabled: true }],
316-
sink: [{ type: 'fs', params: { filepath: './.' }, enabled: true }],
313+
sink: [{ type: 'fs', enabled: true }],
317314
contactEmail: null,
318315
urlShortener: null,
319316
};
@@ -328,7 +325,7 @@ describe('Generated Config (QuickType)', () => {
328325
proxyUrl: 'https://test.com',
329326
cookieSecret: 'secret',
330327
authentication: [{ type: 'local', enabled: true }],
331-
sink: [{ type: 'fs', params: { filepath: './.' }, enabled: true }],
328+
sink: [{ type: 'fs', enabled: true }],
332329
rateLimit: {
333330
windowMs: 60000,
334331
limit: 150,

website/docs/configuration/reference.mdx

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,23 +1192,6 @@ Specific value: `"fs"`
11921192
</blockquote>
11931193
</details>
11941194

1195-
<details>
1196-
<summary>
1197-
<strong> <a name="sink_items_oneOf_i1_params"></a>15.1.2.3. [Optional] Property GitProxy configuration file > sink > sink items > oneOf > item 1 > params</strong>
1198-
</summary>
1199-
<blockquote>
1200-
1201-
| | |
1202-
| ------------------------- | ---------------- |
1203-
| **Type** | `object` |
1204-
| **Required** | No |
1205-
| **Additional properties** | Any type allowed |
1206-
1207-
**Description:** Legacy config property not currently used
1208-
1209-
</blockquote>
1210-
</details>
1211-
12121195
</blockquote>
12131196

12141197
</blockquote>
@@ -2046,4 +2029,4 @@ Specific value: `"jwt"`
20462029
</details>
20472030

20482031
----------------------------------------------------------------------------------------------------------------------------
2049-
Generated using [json-schema-for-humans](https://github.com/coveooss/json-schema-for-humans) on 2025-12-12 at 12:07:48 +0000
2032+
Generated using [json-schema-for-humans](https://github.com/coveooss/json-schema-for-humans) on 2026-01-21 at 14:25:25 +0100

0 commit comments

Comments
 (0)