Skip to content

Commit e1cb1c8

Browse files
authored
fix(specs): add docker source input (#1594)
1 parent 3261c9f commit e1cb1c8

File tree

1 file changed

+43
-2
lines changed

1 file changed

+43
-2
lines changed

specs/ingestion/common/schemas/source.yml

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ SourceSearch:
9494

9595
SourceType:
9696
type: string
97-
enum: ['bigcommerce', 'commercetools', 'json', 'csv', 'bigquery']
97+
enum: ['bigcommerce', 'commercetools', 'json', 'csv', 'bigquery', 'docker']
9898

9999
SourceCommercetools:
100100
type: object
@@ -225,19 +225,59 @@ SourceBigQuery:
225225
$ref: '#/UniqueIDColumn'
226226
required:
227227
- projectID
228-
- datasetID
228+
- datasetID
229229

230230
BigQueryDataType:
231231
type: string
232232
enum: ['ga4', 'ga360']
233233

234+
SourceDocker:
235+
type: object
236+
additionalProperties: false
237+
properties:
238+
registry:
239+
$ref: '#/DockerRegistry'
240+
image:
241+
type: string
242+
description: The name of the image to pull.
243+
example: algolia/zendesk
244+
version:
245+
type: string
246+
description: The version of the image, defaults to `latest`.
247+
example: v2.1.0
248+
imageType:
249+
$ref: '#/DockerImageType'
250+
outputFile:
251+
type: string
252+
description: The full name of the output file.
253+
example: output.json
254+
configuration:
255+
type: object
256+
description: The configuration of the spec.
257+
required:
258+
- registry
259+
- image
260+
- imageType
261+
- configuration
262+
263+
DockerRegistry:
264+
type: string
265+
enum: ['dockerhub', 'gcr']
266+
description: The registry where the image is stored.
267+
268+
DockerImageType:
269+
type: string
270+
enum: ['singer', 'custom', 'airbyte']
271+
description: The type of the image.
272+
234273
SourceInput:
235274
oneOf:
236275
- $ref: '#/SourceCommercetools'
237276
- $ref: '#/SourceBigCommerce'
238277
- $ref: '#/SourceJSON'
239278
- $ref: '#/SourceCSV'
240279
- $ref: '#/SourceBigQuery'
280+
- $ref: '#/SourceDocker'
241281

242282
SourceUpdateCommercetools:
243283
type: object
@@ -261,3 +301,4 @@ SourceUpdateInput:
261301
- $ref: '#/SourceJSON'
262302
- $ref: '#/SourceCSV'
263303
- $ref: '#/SourceBigQuery'
304+
- $ref: '#/SourceDocker'

0 commit comments

Comments
 (0)