@@ -134,7 +134,7 @@ MethodType:
134
134
type : string
135
135
enum : ['GET', 'POST']
136
136
137
- SourceJson :
137
+ SourceJSON :
138
138
type : object
139
139
additionalProperties : false
140
140
properties :
@@ -146,18 +146,26 @@ SourceJson:
146
146
required :
147
147
- url
148
148
149
- SourceCsv :
149
+ MappingTypeCSV :
150
+ type : string
151
+ enum : ['string','integer','float','boolean','json']
152
+
153
+ SourceCSV :
150
154
type : object
151
155
additionalProperties : false
152
156
properties :
153
157
url :
154
158
type : string
159
+ description : The URL of the file.
155
160
uniqueIDColumn :
156
161
type : string
162
+ description : The name of the column that contains the unique ID.
157
163
mapping :
158
164
type : object
165
+ description : >
166
+ Mapping of type for every column. For example {"myColumn": "boolean, "myOtherColumn": "json"}.
159
167
additionalProperties :
160
- type : string
168
+ $ref : ' #/MappingTypeCSV '
161
169
method :
162
170
$ref : ' #/MethodType'
163
171
required :
@@ -167,8 +175,8 @@ SourceInput:
167
175
oneOf :
168
176
- $ref : ' #/SourceCommercetools'
169
177
- $ref : ' #/SourceBigCommerce'
170
- - $ref : ' #/SourceJson '
171
- - $ref : ' #/SourceCsv '
178
+ - $ref : ' #/SourceJSON '
179
+ - $ref : ' #/SourceCSV '
172
180
173
181
SourceUpdateCommercetools :
174
182
type : object
@@ -186,13 +194,34 @@ SourceUpdateCommercetools:
186
194
items :
187
195
type : string
188
196
189
- SourceUpdateJson :
197
+ SourceUpdateJSON :
198
+ type : object
199
+ additionalProperties : false
200
+ properties :
201
+ url :
202
+ type : string
203
+ description : The URL of the file.
204
+ method :
205
+ $ref : ' #/MethodType'
206
+ required :
207
+ - url
208
+
209
+ SourceUpdateCSV :
190
210
type : object
191
211
additionalProperties : false
192
212
properties :
193
213
url :
194
214
type : string
195
215
description : The URL of the file.
216
+ uniqueIDColumn :
217
+ type : string
218
+ description : The name of the column that contains the unique ID.
219
+ mapping :
220
+ type : object
221
+ description : >
222
+ Mapping of type for every column. For example {"myColumn": "boolean, "myOtherColumn": "json"}.
223
+ additionalProperties :
224
+ $ref : ' #/MappingTypeCSV'
196
225
method :
197
226
$ref : ' #/MethodType'
198
227
required :
@@ -201,4 +230,5 @@ SourceUpdateJson:
201
230
SourceUpdateInput :
202
231
oneOf :
203
232
- $ref : ' #/SourceUpdateCommercetools'
204
- - $ref : ' #/SourceUpdateJson'
233
+ - $ref : ' #/SourceUpdateJSON'
234
+ - $ref : ' #/SourceUpdateCSV'
0 commit comments