@tillhub/schemas 6.152.0 → 6.153.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [6.153.0](https://github.com/tillhub/schemas/compare/v6.152.0...v6.153.0) (2022-08-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **products:** refine attributes ([9e3c85b](https://github.com/tillhub/schemas/commit/9e3c85b))
|
|
7
|
+
|
|
1
8
|
# [6.152.0](https://github.com/tillhub/schemas/compare/v6.151.1...v6.152.0) (2022-08-03)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -12,9 +12,9 @@ module.exports = {
|
|
|
12
12
|
type: 'string',
|
|
13
13
|
enum: [
|
|
14
14
|
'generate', // default Tillhub style, e.g. RTEA33D915 - which supports also API lookup
|
|
15
|
-
'external_reference_id' // any external ID
|
|
15
|
+
'external_reference_id' // any external ID from e.g. saved carts or manual entry, BSH: 1111728444 or even UUIDs - API lookup not guaranteed, printing for UUIDs not possible
|
|
16
16
|
],
|
|
17
|
-
default: 'generate' // -> BSH
|
|
17
|
+
default: 'generate' // -> BSH must set source to 'external_reference_id' to keep their current behavior
|
|
18
18
|
})
|
|
19
19
|
}
|
|
20
20
|
}),
|
package/lib/v1/products/base.js
CHANGED
|
@@ -84,7 +84,9 @@ const request = {
|
|
|
84
84
|
description: 'Arbitrary attributes a product has, that will be displayed in e.g. a sale',
|
|
85
85
|
anyOf: [
|
|
86
86
|
{
|
|
87
|
-
type: 'object'
|
|
87
|
+
type: 'object',
|
|
88
|
+
description: 'A dictionary <string, string> describing all values for one specific variant',
|
|
89
|
+
additionalProperties: { type: 'string' }
|
|
88
90
|
},
|
|
89
91
|
{
|
|
90
92
|
type: 'null'
|