File tree Expand file tree Collapse file tree 4 files changed +28
-8
lines changed Expand file tree Collapse file tree 4 files changed +28
-8
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ Authentication:
10
10
type : string
11
11
platform :
12
12
$ref : ' #/PlatformType'
13
- input :
14
- $ref : ' #/AuthInput'
15
13
createdAt :
16
14
$ref : ' ./common.yml#/createdAt'
17
15
updatedAt :
@@ -23,6 +21,18 @@ Authentication:
23
21
- input
24
22
- createdAt
25
23
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
+
26
36
AuthenticationCreate :
27
37
type : object
28
38
additionalProperties : false
@@ -140,7 +150,6 @@ AuthOAuth:
140
150
- url
141
151
- client_id
142
152
- client_secret
143
- - scope
144
153
145
154
AuthAlgolia :
146
155
type : object
Original file line number Diff line number Diff line change @@ -98,10 +98,10 @@ SourceCommercetools:
98
98
type : string
99
99
locales :
100
100
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"].
101
103
items :
102
104
type : string
103
- description : >
104
- The string must match the following pattern: ^[a-z]{2}(-[A-Z]{2})?$. For example "fr-FR" or "en".
105
105
url :
106
106
type : string
107
107
projectKey :
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ TaskCreate:
39
39
destinationID :
40
40
type : string
41
41
trigger :
42
- $ref : ' #/Trigger '
42
+ $ref : ' #/TriggerInput '
43
43
action :
44
44
$ref : ' #/ActionType'
45
45
enabled :
@@ -72,7 +72,7 @@ TaskUpdate:
72
72
destinationID :
73
73
type : string
74
74
trigger :
75
- $ref : ' #/Trigger '
75
+ $ref : ' #/TriggerInput '
76
76
enabled :
77
77
type : boolean
78
78
@@ -92,6 +92,17 @@ ActionType:
92
92
type : string
93
93
enum : ['replace', 'save', 'delete']
94
94
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
+
95
106
Trigger :
96
107
type : object
97
108
additionalProperties : false
Original file line number Diff line number Diff line change 12
12
content :
13
13
application/json :
14
14
schema :
15
- $ref : ' ../../common/schemas/authentication.yml#/Authentication '
15
+ $ref : ' ../../common/schemas/authentication.yml#/AuthenticationWithInput '
16
16
' 400 ' :
17
17
$ref : ' ../../../common/responses/BadRequest.yml'
18
18
You can’t perform that action at this time.
0 commit comments