Skip to content

Commit 466cc0b

Browse files
authored
fix(specs): remove input from auth list (#1229)
1 parent 758163d commit 466cc0b

File tree

4 files changed

+28
-8
lines changed

4 files changed

+28
-8
lines changed

specs/ingestion/common/schemas/authentication.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ Authentication:
1010
type: string
1111
platform:
1212
$ref: '#/PlatformType'
13-
input:
14-
$ref: '#/AuthInput'
1513
createdAt:
1614
$ref: './common.yml#/createdAt'
1715
updatedAt:
@@ -23,6 +21,18 @@ Authentication:
2321
- input
2422
- createdAt
2523

24+
AuthenticationWithInput:
25+
allOf:
26+
- $ref: '#/Authentication'
27+
- type: object
28+
title: authenticationInput
29+
additionalProperties: false
30+
properties:
31+
input:
32+
$ref: '#/AuthInput'
33+
required:
34+
- input
35+
2636
AuthenticationCreate:
2737
type: object
2838
additionalProperties: false
@@ -140,7 +150,6 @@ AuthOAuth:
140150
- url
141151
- client_id
142152
- client_secret
143-
- scope
144153

145154
AuthAlgolia:
146155
type: object

specs/ingestion/common/schemas/source.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ SourceCommercetools:
9898
type: string
9999
locales:
100100
type: array
101+
description: >
102+
Array of locales that must match the following pattern: ^[a-z]{2}(-[A-Z]{2})?$. For example ["fr-FR", "en"].
101103
items:
102104
type: string
103-
description: >
104-
The string must match the following pattern: ^[a-z]{2}(-[A-Z]{2})?$. For example "fr-FR" or "en".
105105
url:
106106
type: string
107107
projectKey:

specs/ingestion/common/schemas/task.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ TaskCreate:
3939
destinationID:
4040
type: string
4141
trigger:
42-
$ref: '#/Trigger'
42+
$ref: '#/TriggerInput'
4343
action:
4444
$ref: '#/ActionType'
4545
enabled:
@@ -72,7 +72,7 @@ TaskUpdate:
7272
destinationID:
7373
type: string
7474
trigger:
75-
$ref: '#/Trigger'
75+
$ref: '#/TriggerInput'
7676
enabled:
7777
type: boolean
7878

@@ -92,6 +92,17 @@ ActionType:
9292
type: string
9393
enum: ['replace', 'save', 'delete']
9494

95+
TriggerInput:
96+
type: object
97+
additionalProperties: false
98+
properties:
99+
type:
100+
$ref: '#/TriggerType'
101+
cron:
102+
type: string
103+
required:
104+
- type
105+
95106
Trigger:
96107
type: object
97108
additionalProperties: false

specs/ingestion/paths/authentications/authenticationID.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ get:
1212
content:
1313
application/json:
1414
schema:
15-
$ref: '../../common/schemas/authentication.yml#/Authentication'
15+
$ref: '../../common/schemas/authentication.yml#/AuthenticationWithInput'
1616
'400':
1717
$ref: '../../../common/responses/BadRequest.yml'
1818

0 commit comments

Comments
 (0)