Skip to content

Commit e73b9cf

Browse files
authored
fix(specs): introduced SourceUpdateDocker (#2005)
1 parent 93894c2 commit e73b9cf

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

specs/ingestion/common/schemas/destination.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ DestinationIndexName:
130130
RecordType:
131131
type: string
132132
description: Determines the indexing strategy to use for a given e-commerce source.
133-
enum: [ 'product', 'variant' ]
133+
enum: ['product', 'variant']
134134

135135
DestinationInput:
136136
oneOf:

specs/ingestion/common/schemas/source.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ SourceDocker:
266266
type: object
267267
additionalProperties: false
268268
properties:
269+
imageType:
270+
$ref: '#/DockerImageType'
269271
registry:
270272
$ref: '#/DockerRegistry'
271273
image:
@@ -276,8 +278,6 @@ SourceDocker:
276278
type: string
277279
description: The version of the image, defaults to `latest`.
278280
example: v2.1.0
279-
imageType:
280-
$ref: '#/DockerImageType'
281281
configuration:
282282
type: object
283283
description: The configuration of the spec.
@@ -287,6 +287,26 @@ SourceDocker:
287287
- imageType
288288
- configuration
289289

290+
SourceUpdateDocker:
291+
type: object
292+
additionalProperties: false
293+
properties:
294+
registry:
295+
$ref: '#/DockerRegistry'
296+
image:
297+
type: string
298+
description: The name of the image to pull.
299+
example: algolia/zendesk
300+
version:
301+
type: string
302+
description: The version of the image, defaults to `latest`.
303+
example: v2.1.0
304+
configuration:
305+
type: object
306+
description: The configuration of the spec.
307+
required:
308+
- configuration
309+
290310
DockerRegistry:
291311
type: string
292312
enum: ['dockerhub', 'ghcr']
@@ -328,4 +348,4 @@ SourceUpdateInput:
328348
- $ref: '#/SourceJSON'
329349
- $ref: '#/SourceCSV'
330350
- $ref: '#/SourceBigQuery'
331-
- $ref: '#/SourceDocker'
351+
- $ref: '#/SourceUpdateDocker'

0 commit comments

Comments
 (0)