Skip to content

Commit

Permalink
fix(specs): ingestion destination reject indexPrefix (#3478)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored Aug 5, 2024
1 parent 84773e7 commit 08a04de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
11 changes: 0 additions & 11 deletions specs/ingestion/common/schemas/destination.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,6 @@ DestinationType:
Data is recorded as user events in the Insights API.
enum: [search, insights]

DestinationIndexPrefix:
type: object
additionalProperties: false
properties:
indexPrefix:
type: string
description: String added to the beginning of all indices created by this destination.
required:
- indexPrefix

DestinationIndexName:
type: object
additionalProperties: false
Expand Down Expand Up @@ -164,5 +154,4 @@ AttributesToExclude:

DestinationInput:
oneOf:
- $ref: '#/DestinationIndexPrefix'
- $ref: '#/DestinationIndexName'
8 changes: 4 additions & 4 deletions tests/CTS/requests/ingestion/createDestination.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "search",
"name": "destinationName",
"input": {
"indexPrefix": "prefix_"
"indexName": "full_name______"
},
"authenticationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f"
},
Expand All @@ -15,7 +15,7 @@
"type": "search",
"name": "destinationName",
"input": {
"indexPrefix": "prefix_"
"indexName": "full_name______"
},
"authenticationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f"
}
Expand All @@ -27,7 +27,7 @@
"type": "search",
"name": "destinationName",
"input": {
"indexPrefix": "prefix_"
"indexName": "full_name______"
},
"transformationIDs": [
"6c02aeb1-775e-418e-870b-1faccd4b2c0f"
Expand All @@ -40,7 +40,7 @@
"type": "search",
"name": "destinationName",
"input": {
"indexPrefix": "prefix_"
"indexName": "full_name______"
},
"transformationIDs": [
"6c02aeb1-775e-418e-870b-1faccd4b2c0f"
Expand Down

0 comments on commit 08a04de

Please sign in to comment.