Skip to content

Commit f0be1b4

Browse files
committed
Merge remote-tracking branch 'finos/main' into deprecate_github_api_baseurl
2 parents 8557d4a + 0e16394 commit f0be1b4

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

config.schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"description": "List of authentication sources. The first source in the configuration with enabled=true will be used.",
134134
"type": "array",
135135
"items": {
136-
"$ref": "#/definitions/authentication"
136+
"$ref": "#/definitions/authenticationElement"
137137
}
138138
},
139139
"tempPassword": {
@@ -151,7 +151,7 @@
151151
"description": "List of authentication sources for API endpoints. May be empty, in which case all endpoints are public.",
152152
"type": "array",
153153
"items": {
154-
"$ref": "#/definitions/authentication"
154+
"$ref": "#/definitions/authenticationElement"
155155
}
156156
},
157157
"tls": {
@@ -221,7 +221,7 @@
221221
},
222222
"required": ["type", "enabled"]
223223
},
224-
"authentication": {
224+
"authenticationElement": {
225225
"type": "object",
226226
"description": "Configuration for an authentication source",
227227
"oneOf": [

src/config/generated/config.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface GitProxyConfig {
2121
* List of authentication sources for API endpoints. May be empty, in which case all
2222
* endpoints are public.
2323
*/
24-
apiAuthentication?: Authentication[];
24+
apiAuthentication?: AuthenticationElement[];
2525
/**
2626
* Customisable questions to add to attestation form
2727
*/
@@ -30,7 +30,7 @@ export interface GitProxyConfig {
3030
* List of authentication sources. The first source in the configuration with enabled=true
3131
* will be used.
3232
*/
33-
authentication?: Authentication[];
33+
authentication?: AuthenticationElement[];
3434
/**
3535
* List of repositories that are authorised to be pushed to through the proxy.
3636
*/
@@ -165,7 +165,7 @@ export interface Ls {
165165
/**
166166
* Configuration for an authentication source
167167
*/
168-
export interface Authentication {
168+
export interface AuthenticationElement {
169169
enabled: boolean;
170170
type: Type;
171171
/**
@@ -521,10 +521,14 @@ const typeMap: any = {
521521
{
522522
json: 'apiAuthentication',
523523
js: 'apiAuthentication',
524-
typ: u(undefined, a(r('Authentication'))),
524+
typ: u(undefined, a(r('AuthenticationElement'))),
525525
},
526526
{ json: 'attestationConfig', js: 'attestationConfig', typ: u(undefined, m('any')) },
527-
{ json: 'authentication', js: 'authentication', typ: u(undefined, a(r('Authentication'))) },
527+
{
528+
json: 'authentication',
529+
js: 'authentication',
530+
typ: u(undefined, a(r('AuthenticationElement'))),
531+
},
528532
{ json: 'authorisedList', js: 'authorisedList', typ: u(undefined, a(r('AuthorisedRepo'))) },
529533
{ json: 'commitConfig', js: 'commitConfig', typ: u(undefined, m('any')) },
530534
{ json: 'configurationSources', js: 'configurationSources', typ: u(undefined, 'any') },
@@ -566,7 +570,7 @@ const typeMap: any = {
566570
'any',
567571
),
568572
Ls: o([{ json: 'userInADGroup', js: 'userInADGroup', typ: u(undefined, '') }], false),
569-
Authentication: o(
573+
AuthenticationElement: o(
570574
[
571575
{ json: 'enabled', js: 'enabled', typ: true },
572576
{ json: 'type', js: 'type', typ: r('Type') },

0 commit comments

Comments
 (0)