@tillhub/schemas 6.354.0 → 6.356.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.356.0](https://github.com/tillhub/schemas/compare/v6.355.0...v6.356.0) (2025-02-05)
2
+
3
+
4
+ ### Features
5
+
6
+ * **table_layout:** table_layout_v1 added ([#1027](https://github.com/tillhub/schemas/issues/1027)) ([5b2267e](https://github.com/tillhub/schemas/commit/5b2267e))
7
+
8
+ # [6.355.0](https://github.com/tillhub/schemas/compare/v6.354.0...v6.355.0) (2025-02-04)
9
+
10
+
11
+ ### Features
12
+
13
+ * **carts:** support carts without items ([#1025](https://github.com/tillhub/schemas/issues/1025)) ([97965a9](https://github.com/tillhub/schemas/commit/97965a9))
14
+
1
15
  # [6.354.0](https://github.com/tillhub/schemas/compare/v6.353.0...v6.354.0) (2025-01-30)
2
16
 
3
17
 
@@ -172,7 +172,7 @@ module.exports = {
172
172
  maxLength: 4096
173
173
  })
174
174
  },
175
- items,
175
+ items: oneOf(items),
176
176
  metadata: oneOf({
177
177
  type: 'object',
178
178
  description: 'Additional meta data',
@@ -8,9 +8,7 @@ module.exports = {
8
8
  $schema: 'http://json-schema.org/draft-07/schema#',
9
9
  type: 'object',
10
10
  additionalProperties: false,
11
- required: [
12
- 'items'
13
- ],
11
+ required: [],
14
12
  properties: base
15
13
  },
16
14
  response: {
@@ -1,5 +1,6 @@
1
1
  const baseObject = require('../../common/base')
2
2
  const commonResponse = require('../../common/response')
3
+ const { oneOf } = require('../../helpers/payload-or-null')
3
4
  const base = require('./base')
4
5
  const patch = require('./items').patch
5
6
 
@@ -11,7 +12,7 @@ module.exports = {
11
12
  additionalProperties: false,
12
13
  required: [
13
14
  ],
14
- properties: { ...base, items: patch }
15
+ properties: { ...base, items: oneOf(patch) }
15
16
  },
16
17
  response: {
17
18
  $id: 'https://schemas.tillhub.com/v1/carts.patch.response.schema.json',
@@ -5,7 +5,6 @@ module.exports.request = {
5
5
  $schema: 'http://json-schema.org/draft-07/schema#',
6
6
  additionalProperties: false,
7
7
  required: [
8
- 'type',
9
8
  'name',
10
9
  'location',
11
10
  'tables_count',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.354.0",
3
+ "version": "6.356.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",