Skip to content

Commit e3aa6b2

Browse files
authored
fix(specs): add UniqueIDColumn property to SourceJSON input (#1333)
1 parent 5e9c0a4 commit e3aa6b2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

specs/ingestion/common/schemas/source.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,19 @@ MethodType:
134134
type: string
135135
enum: ['GET', 'POST']
136136

137+
UniqueIDColumn:
138+
type: string
139+
description: The name of the column that contains the unique ID, used as `objectID` in Algolia.
140+
137141
SourceJSON:
138142
type: object
139143
additionalProperties: false
140144
properties:
141145
url:
142146
type: string
143147
description: The URL of the file.
148+
uniqueIDColumn:
149+
$ref: '#/UniqueIDColumn'
144150
method:
145151
$ref: '#/MethodType'
146152
required:
@@ -158,8 +164,7 @@ SourceCSV:
158164
type: string
159165
description: The URL of the file.
160166
uniqueIDColumn:
161-
type: string
162-
description: The name of the column that contains the unique ID, used as `objectID` in Algolia.
167+
$ref: '#/UniqueIDColumn'
163168
mapping:
164169
type: object
165170
description: >

0 commit comments

Comments
 (0)