From 2e515afeb11c79533c27ad280510046f3bca38a5 Mon Sep 17 00:00:00 2001 From: Pierre Millot Date: Mon, 5 Jun 2023 11:53:18 +0200 Subject: [PATCH] fix(specs): add docker source input --- specs/ingestion/common/schemas/source.yml | 45 ++++++++++++++++++++++- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/specs/ingestion/common/schemas/source.yml b/specs/ingestion/common/schemas/source.yml index c356879606..6cc7172fd0 100644 --- a/specs/ingestion/common/schemas/source.yml +++ b/specs/ingestion/common/schemas/source.yml @@ -94,7 +94,7 @@ SourceSearch: SourceType: type: string - enum: ['bigcommerce', 'commercetools', 'json', 'csv', 'bigquery'] + enum: ['bigcommerce', 'commercetools', 'json', 'csv', 'bigquery', 'docker'] SourceCommercetools: type: object @@ -225,12 +225,51 @@ 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' @@ -238,6 +277,7 @@ SourceInput: - $ref: '#/SourceJSON' - $ref: '#/SourceCSV' - $ref: '#/SourceBigQuery' + - $ref: '#/SourceDocker' SourceUpdateCommercetools: type: object @@ -261,3 +301,4 @@ SourceUpdateInput: - $ref: '#/SourceJSON' - $ref: '#/SourceCSV' - $ref: '#/SourceBigQuery' + - $ref: '#/SourceDocker'