From c8d7607159dd5df1c470f16dec9f0579035e05dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= Date: Thu, 28 Sep 2023 08:56:01 +0200 Subject: [PATCH] feat(specs): add `attributesToExclude` --- specs/ingestion/common/schemas/destination.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/specs/ingestion/common/schemas/destination.yml b/specs/ingestion/common/schemas/destination.yml index 8aea36af28..63ffde745c 100644 --- a/specs/ingestion/common/schemas/destination.yml +++ b/specs/ingestion/common/schemas/destination.yml @@ -124,6 +124,8 @@ DestinationIndexName: description: The index name to store data in. recordType: $ref: '#/RecordType' + attributesToExclude: + $ref: '#/AttributesToExclude' required: - indexName @@ -132,6 +134,19 @@ RecordType: description: Determines the indexing strategy to use for a given e-commerce source. enum: ['product', 'variant'] +AttributesToExclude: + type: array + description: > + Determines the attributes to exclude from an Algolia record. + + To remove nested element, you can separate the path to the element with dots (`.`): + - "foo.bar": will remove `bar` from `foo`. + To remove elements from an array, you can use the following: + - "foo.[0].bar": will only remove `bar` from the first element of `foo`. + - "foo.[*].bar": will remove `bar` from every elements of `foo`. + items: + type: string + DestinationInput: oneOf: - $ref: '#/DestinationIndexPrefix'