Skip to content

Commit

Permalink
feat(specs): add recordType and fallbackIsInStockValue in inputs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
damcou committed Sep 7, 2023
1 parent 92a43b8 commit 24affb2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/.cache_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.94
0.0.95
9 changes: 8 additions & 1 deletion specs/ingestion/common/schemas/destination.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ DestinationCreateResponse:
DestinationUpdate:
type: object
additionalProperties: false
description: Payload to partialy update a Destination.
description: Payload to partially update a Destination.
properties:
type:
$ref: '#/DestinationType'
Expand Down Expand Up @@ -122,9 +122,16 @@ DestinationIndexName:
indexName:
type: string
description: The index name to store data in.
recordType:
$ref: '#/RecordType'
required:
- indexName

RecordType:
type: string
description: Determines the indexing strategy to use for a given e-commerce source.
enum: [ 'product', 'variant' ]

DestinationInput:
oneOf:
- $ref: '#/DestinationIndexPrefix'
Expand Down
5 changes: 5 additions & 0 deletions specs/ingestion/common/schemas/source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ SourceCommercetools:
type: string
projectKey:
type: string
fallbackIsInStockValue:
type: boolean
default: true
description: >
Determines the value that will be stored in the Algolia record if there's no inventory information on the product.
required:
- url
- projectKey
Expand Down

0 comments on commit 24affb2

Please sign in to comment.