@tillhub/schemas 6.357.1 → 6.359.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,17 @@
1
+ # [6.359.0](https://github.com/tillhub/schemas/compare/v6.358.0...v6.359.0) (2025-02-19)
2
+
3
+
4
+ ### Features
5
+
6
+ * **products:** correct validation for bulk editing for prices ([#1035](https://github.com/tillhub/schemas/issues/1035)) ([4c56c3e](https://github.com/tillhub/schemas/commit/4c56c3e))
7
+
8
+ # [6.358.0](https://github.com/tillhub/schemas/compare/v6.357.1...v6.358.0) (2025-02-19)
9
+
10
+
11
+ ### Features
12
+
13
+ * **products:** gross price validation for bulk edit ([#1034](https://github.com/tillhub/schemas/issues/1034)) ([20116d1](https://github.com/tillhub/schemas/commit/20116d1))
14
+
1
15
  ## [6.357.1](https://github.com/tillhub/schemas/compare/v6.357.0...v6.357.1) (2025-02-18)
2
16
 
3
17
 
@@ -2,6 +2,7 @@ const grossPriceCondition = {
2
2
  if: {
3
3
  allOf: [
4
4
  {
5
+ required: ['configuration'],
5
6
  properties: {
6
7
  configuration: {
7
8
  type: 'object',
@@ -30,25 +31,28 @@ const grossPriceCondition = {
30
31
  ]
31
32
  },
32
33
  then: {
34
+ required: ['prices'],
33
35
  properties: {
34
36
  prices: {
35
37
  type: 'object',
38
+ required: ['default_prices'],
36
39
  properties: {
37
40
  default_prices: {
38
41
  type: 'array',
39
42
  contains: {
40
43
  type: 'object',
44
+ required: ['amount'],
41
45
  properties: {
42
46
  amount: {
43
47
  type: 'object',
48
+ required: ['gross'],
44
49
  properties: {
45
50
  gross: {
46
51
  type: 'number',
47
52
  minimum: 0,
48
53
  multipleOf: 0.01
49
54
  }
50
- },
51
- required: ['gross']
55
+ }
52
56
  }
53
57
  }
54
58
  }
@@ -242,7 +242,8 @@ module.exports.bulk = {
242
242
  },
243
243
  ...base.response,
244
244
  ...ext
245
- }
245
+ },
246
+ allOf: [grossPriceCondition]
246
247
  }
247
248
  }
248
249
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.357.1",
3
+ "version": "6.359.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",