Skip to content

Commit 9b1eb87

Browse files
committed
feat(specs): add CSV source
1 parent 5ed4855 commit 9b1eb87

File tree

1 file changed

+2
-34
lines changed

1 file changed

+2
-34
lines changed

specs/ingestion/common/schemas/source.yml

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -194,41 +194,9 @@ SourceUpdateCommercetools:
194194
items:
195195
type: string
196196

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:
210-
type: object
211-
additionalProperties: false
212-
properties:
213-
url:
214-
type: string
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'
225-
method:
226-
$ref: '#/MethodType'
227-
required:
228-
- url
229197

230198
SourceUpdateInput:
231199
oneOf:
232200
- $ref: '#/SourceUpdateCommercetools'
233-
- $ref: '#/SourceUpdateJSON'
234-
- $ref: '#/SourceUpdateCSV'
201+
- $ref: '#/SourceJSON'
202+
- $ref: '#/SourceCSV'

0 commit comments

Comments
 (0)