Skip to content

Commit

Permalink
fix(specs): add docker source input (#1594)
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp authored Jun 5, 2023
1 parent 3261c9f commit e1cb1c8
Showing 1 changed file with 43 additions and 2 deletions.
45 changes: 43 additions & 2 deletions specs/ingestion/common/schemas/source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ SourceSearch:

SourceType:
type: string
enum: ['bigcommerce', 'commercetools', 'json', 'csv', 'bigquery']
enum: ['bigcommerce', 'commercetools', 'json', 'csv', 'bigquery', 'docker']

SourceCommercetools:
type: object
Expand Down Expand Up @@ -225,19 +225,59 @@ SourceBigQuery:
$ref: '#/UniqueIDColumn'
required:
- projectID
- datasetID
- datasetID

BigQueryDataType:
type: string
enum: ['ga4', 'ga360']

SourceDocker:
type: object
additionalProperties: false
properties:
registry:
$ref: '#/DockerRegistry'
image:
type: string
description: The name of the image to pull.
example: algolia/zendesk
version:
type: string
description: The version of the image, defaults to `latest`.
example: v2.1.0
imageType:
$ref: '#/DockerImageType'
outputFile:
type: string
description: The full name of the output file.
example: output.json
configuration:
type: object
description: The configuration of the spec.
required:
- registry
- image
- imageType
- configuration

DockerRegistry:
type: string
enum: ['dockerhub', 'gcr']
description: The registry where the image is stored.

DockerImageType:
type: string
enum: ['singer', 'custom', 'airbyte']
description: The type of the image.

SourceInput:
oneOf:
- $ref: '#/SourceCommercetools'
- $ref: '#/SourceBigCommerce'
- $ref: '#/SourceJSON'
- $ref: '#/SourceCSV'
- $ref: '#/SourceBigQuery'
- $ref: '#/SourceDocker'

SourceUpdateCommercetools:
type: object
Expand All @@ -261,3 +301,4 @@ SourceUpdateInput:
- $ref: '#/SourceJSON'
- $ref: '#/SourceCSV'
- $ref: '#/SourceBigQuery'
- $ref: '#/SourceDocker'

0 comments on commit e1cb1c8

Please sign in to comment.