Skip to content

Commit

Permalink
feat(specs): add attributesToExclude for Ingestion (#2053)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored Sep 28, 2023
1 parent 6ecb3ce commit 2260e90
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions specs/ingestion/common/schemas/destination.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ DestinationIndexName:
description: The index name to store data in.
recordType:
$ref: '#/RecordType'
attributesToExclude:
$ref: '#/AttributesToExclude'
required:
- indexName

Expand All @@ -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'
Expand Down

0 comments on commit 2260e90

Please sign in to comment.