@tillhub/schemas 6.130.0 → 6.131.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,11 @@
1
+ # [6.131.0](https://github.com/tillhub/schemas/compare/v6.130.0...v6.131.0) (2022-03-29)
2
+
3
+
4
+ ### Features
5
+
6
+ * **customers:** Make bare minimum mandatory in customer creation schema ([#684](https://github.com/tillhub/schemas/issues/684)) ([ebc4273](https://github.com/tillhub/schemas/commit/ebc4273))
7
+ * **customers:** Make bare minimum mandatory in customer creation schema ([#685](https://github.com/tillhub/schemas/issues/685)) ([5d95430](https://github.com/tillhub/schemas/commit/5d95430))
8
+
1
9
  # [6.130.0](https://github.com/tillhub/schemas/compare/v6.129.0...v6.130.0) (2022-03-24)
2
10
 
3
11
 
@@ -24,10 +24,8 @@ module.exports = {
24
24
  lastname: {
25
25
  example: 'Fett',
26
26
  description: 'Last name',
27
- ...anyOf({
28
- type: 'string',
29
- maxLength: 128
30
- })
27
+ type: 'string',
28
+ maxLength: 128
31
29
  },
32
30
  middlename: {
33
31
  description: 'Middle name',
@@ -1,4 +1,3 @@
1
- const { anyOf } = require('../../helpers/payload-or-null')
2
1
  const baseObject = require('../../common/base')
3
2
  const commonResponse = require('../../common/response')
4
3
 
@@ -11,17 +10,9 @@ module.exports = {
11
10
  additionalProperties: false,
12
11
  type: 'object',
13
12
  properties: base,
14
- ...anyOf([{
15
- required: [
16
- 'firstname'
17
- ]
18
- }, {
19
- required: [
20
- 'lastname'
21
- ]
22
- }
23
- ]),
24
- required: []
13
+ required: [
14
+ 'lastname'
15
+ ]
25
16
  },
26
17
  response: {
27
18
  $id: 'https://schemas.tillhub.com/v0/customers.create.response.schema.json',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tillhub/schemas",
3
- "version": "6.130.0",
3
+ "version": "6.131.0",
4
4
  "private": false,
5
5
  "description": "All Tillhub API OpenAPI 3 compatible JSON Schemas.",
6
6
  "main": "./lib/index.js",