@tillhub/schemas 6.240.0 → 6.240.1

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.240.1](https://github.com/tillhub/schemas/compare/v6.240.0...v6.240.1) (2023-08-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **services:** add $id and $schema fields ([#838](https://github.com/tillhub/schemas/issues/838)) ([fe7dfc4](https://github.com/tillhub/schemas/commit/fe7dfc4))
7
+
1
8
  # [6.240.0](https://github.com/tillhub/schemas/compare/v6.239.0...v6.240.0) (2023-07-31)
2
9
 
3
10
 
@@ -11,7 +11,7 @@ module.exports = {
11
11
  example: 'Haircut'
12
12
  },
13
13
  category: oneOf({
14
- description: 'The UUID of the category that the service belogs to',
14
+ description: 'The UUID of the category that the service belongs to',
15
15
  type: 'string',
16
16
  format: 'uuid',
17
17
  example: '05297f58-3408-44d0-8bf4-125d4e86c08a'
@@ -30,5 +30,7 @@ module.exports = {
30
30
  example: '05297f58-3408-44d0-8bf4-125d4e86c08a'
31
31
  }
32
32
  },
33
- required: ['name', 'duration', 'linked_product']
33
+ required: ['name', 'duration', 'linked_product'],
34
+ $id: 'https://schemas.tillhub.com/v0/services.create.request.schema.json',
35
+ $schema: 'http://json-schema.org/draft-07/schema#'
34
36
  }
@@ -114,7 +114,7 @@ module.exports = oneOf({
114
114
  enum: [
115
115
  'none',
116
116
  'offline',
117
- 'online'
117
+ 'online' // fallback to offline if no results
118
118
  ],
119
119
  default: 'none'
120
120
  })
@@ -244,7 +244,8 @@ module.exports = oneOf({
244
244
  enum: [
245
245
  'never',
246
246
  'if_missing',
247
- 'always'
247
+ 'always',
248
+ 'enforce_if_missing'
248
249
  ],
249
250
  default: 'if_missing'
250
251
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.240.0",
3
+ "version": "6.240.1",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",