From 5dea2d821d6f1951a789843eff4cf712fe79d766 Mon Sep 17 00:00:00 2001 From: Mehmet Ali Gok Date: Wed, 22 Feb 2023 10:55:50 +0100 Subject: [PATCH] fix(specs): add `UniqueIDColumn` property to `SourceJSON` input --- specs/ingestion/common/schemas/source.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/specs/ingestion/common/schemas/source.yml b/specs/ingestion/common/schemas/source.yml index 0426f25935..f81a65ed95 100644 --- a/specs/ingestion/common/schemas/source.yml +++ b/specs/ingestion/common/schemas/source.yml @@ -134,6 +134,10 @@ MethodType: type: string enum: ['GET', 'POST'] +UniqueIDColumn: + type: string + description: The name of the column that contains the unique ID, used as `objectID` in Algolia. + SourceJSON: type: object additionalProperties: false @@ -141,6 +145,8 @@ SourceJSON: url: type: string description: The URL of the file. + uniqueIDColumn: + $ref: '#/UniqueIDColumn' method: $ref: '#/MethodType' required: @@ -158,8 +164,7 @@ SourceCSV: type: string description: The URL of the file. uniqueIDColumn: - type: string - description: The name of the column that contains the unique ID, used as `objectID` in Algolia. + $ref: '#/UniqueIDColumn' mapping: type: object description: >