Skip to content

Commit 9f22785

Browse files
committed
feat(specs): add none element to authentication platform
1 parent 29416b4 commit 9f22785

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

specs/ingestion/common/authenticationParameters.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,10 @@ platform:
2121
schema:
2222
type: array
2323
items:
24-
$ref: './schemas/authentication.yml#/Platform'
25-
example: commercetools,bigcommerce
24+
$ref: '#/platformWithNone'
25+
example: commercetools,none
26+
27+
platformWithNone:
28+
oneOf:
29+
- $ref: './schemas/authentication.yml#/Platform'
30+
- $ref: './schemas/authentication.yml#/PlatformNone'

specs/ingestion/common/schemas/authentication.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ Platform:
101101
type: string
102102
enum: ['bigcommerce', 'commercetools']
103103

104+
PlatformNone:
105+
type: string
106+
enum: ['none']
107+
104108
AuthGoogleServiceAccount:
105109
type: object
106110
additionalProperties: false

specs/ingestion/common/sourceParameters.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@ type:
1414
authenticationID:
1515
name: authenticationID
1616
in: query
17-
description: Which authenticationID the returned source should have. Can be a list of string separated with commas.
17+
description: >-
18+
Which authenticationID the returned source should have. Can be a list of string separated with commas.
19+
Also supports 'none' as a value to return sources that don't bring any authentication.
1820
required: false
1921
style: form
2022
explode: false
2123
schema:
2224
type: array
2325
items:
2426
type: string
27+
example: 10000000-0a75-4000-a000-000000000001,none

0 commit comments

Comments
 (0)